Is there any library that can produce server-side pie charts using Ruby?
Such as this:
This provides easy integration to your rails app by just one line of ruby code. hope this could help to anybody..
https://github.com/ankane/chartkick
Yes, Gruff is pretty cool for this.
Google's javascript charting library is ok for simple tasks
http://code.google.com/apis/chart/
And there are a lot of gems that wrap GoogleCharts
http://googlecharts.rubyforge.org/
https://github.com/mattetti/googlecharts
EDIT: Didn't see the server side constraint. Ignore my answer :)
#bandito has given example of google javascript charting library. Well, there is Chart API from Google which sends back the required image, if you send the parameters in the API URL. See Image Charts. There is a specific section for pie charts there. I have used it once and found it very useful. Ofcourse there is loading time for the chart, and limitations to how far it is customizable, but for a simple pie chart like the one shown in figure, I think this is adequate.
See the getting started for understanding how the API works.
Also see Chart Wizard
For Rails, look at quacky-charts at https://github.com/ragingsquirrel3/quacky-charts
You can use rchart for plotting various chart.
Related
I have a web page that has text AND a few Highcharts charts. I would like to provide a button to export ALL of them in a single PDF.
I did research and was unable to find a client-side tool that can do this with Unicode support. It seems that it has to be the server-side solution. And it seems to me that this may involve a few tools other than just Highcharts.
I am new to Highcharts. I would like to know how this can be accomplished technically, the flow, and what tools are needed.
I also have a question. How can a Highcharts chart be generated on the server-side and then put into a PDF document? Put it another way, can I generate the image or something of a Highcharts chart within a program, and then within the program, put it into a document (PDF) later?
Any pointer will be greatly appreciated.
Regards.
And if so, how? That is, how can I create a PDF with multiple charts, and where each chart gets its own page? (Note the one chart per page requirement disqualifies http://www.highcharts.com/docs/frequently-asked-questions#export-multiple).
This is similar to Highcharts: converting multiple charts at once using phantomjs, which hasn't gotten answered that I could see. To reiterate: I strongly prefer an answer using highcharts-convert.js, not the export module. Thanks in advance.
I have a javascript application written with ember.js and am looking to bind an array of day containing various stats to some charting mechanism. I have been experimenting with highcharts with no luck. I have managed to get it to update through the setInterval function, but am unsure of how to incorporate a highcharts object and an ember object to allow for bindings/computed properties.
I am just beginning with ember, and I appreciate any help/ pointers in the right direction.
There is a JSFiddle around which illustrates how to use Highcharts with Ember.js, see http://jsfiddle.net/Bt2xy/12/.
EDIT: I found the corresponding thread http://highslide.com/forum/viewtopic.php?f=9&t=15397, so the credits of the JSFiddle go to user #mbloem and #hfrntt (Slawek Kolodziej).
Here is a working version of the fiddle above, with Ember rc6 and Highcharts 2: http://jsfiddle.net/qmmvx/2/
For Highcharts 3 the options structure has changed somewhat (and broken the previous fiddle) but the idea remains the same.
Changed dependency to:
http://code.highcharts.com/2.2.4/highcharts.js
Has anyone got any suggestions on where to start with building a google map into a rails app? I would like users to be able to add a marker by clicking the map, and have spent a few days looking for a suitable tutorial or plugin (beyond ym4r), to little avail...any help would be much appreciated as I am finding the Google Maps API rather difficult to get into! I've also come across the railskit for google maps - does anyone have any experience in using it?
Just fyi, I made https://rubygems.org/gems/gmaps4rails which is a useful wrapper with several options.
I probably wouldn't use YM4R. We tried it and found that it doesn't add much value because it just wraps the API. I would recommend working with Google Maps directly from JavaScript. Google Maps API documentation is pretty good, and there are quite a few examples on the web.
There is an example of a click handler on the map here, and adding a marker is just a matter of doing
map.addOverlay(new GMarker(latlng));
I've been using amcharts (a flash component) to produce charts from within my rails application.
I'm curious.. is there a GEM or plugin that allows me to include a charting component in my web app that lets users mix from any data sets they want, and produce basic charts on their own? It would take me ages to script such a tool...
Ideally, I'd like it to read anbunch of xml (or whatever.. perhaps data right out of my database) that has multi-variable data, and the user can use the component to customize his/her own chart with several series, or however they want. A "dummbed" down version of excel, delivered over the web :)
Well you're looking for a graphic images generator ?
There is Gruff which allows that. But I personnaly don't really like the look of the graphs generated.
There is also something language agnostic : Google Charts Api. Which allows you to generate graphics by calling a specific Google url generated with your encoded datas.
So you take your datas from wherever you want (database, xml, ...), you call one of those two libraries and you get your graph.
I too had been searching for Ruby supporting charting libraries. Below are additional charting resources I've not seen mentioned in this post but I've come across in the past.
JQuery sparklines
ProtoChart
XML/SWF Charts
FusionCharts free (Also have a paid version)
Smashing Apps article on charting resources
Enjoy!