Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 581 Vote(s) - 3.54 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What is your preferred way to produce charts in a Ruby on Rails web application?

#1
I'd like to add some pie, bar and scatter charts to my Ruby on Rails web application. I want want them to be atractive, easy to add and not introduce much overhead.

What charting solution would you recommend?
What are its drawbacks (requires Javascript, Flash, expensive, etc)?
Reply

#2
My own option for people who need the support of multiple types of charts and rails helpers to simplify integration -

[To see links please register here]


It's based on Apache eCharts.
Reply

#3
`gem 'chart'` makes it easy to add ChartJS and NVD3 charts to rails.
Reply

#4
[HighChart][1] - A charting library written in pure JavaScript

Gems like [highchart-rails][2], [lazy-high-chart][3] makes the integration with rails easier


[1]:

[To see links please register here]

[2]:

[To see links please register here]

[3]:

[To see links please register here]

Reply

#5
[D3][1] has become my preferred way add great looking charts to web apps. You have to do a little mroe work that some other frameworks, but the appearance and control outweighs that.

I primarily use SVG, which means no IE8, but that is becoming less of an issue.

[1]:

[To see links please register here]

Reply

#6
The gchartrb gem is no longer maintained, it seems. The author [points][1] to these gems:

* [googlecharts](

[To see links please register here]

)
* [gchart](

[To see links please register here]

) (seems abandoned as well)


[1]:

[To see links please register here]

Reply

#7
It <strike>requires flash and</strike> isn't free (though inexpensive): [amcharts][1].

I've used it successfully and like it. I evaluated a number of options a while back and chose it. At the time, however, Google Charts wasn't as mature as it seems to be now. I would consider that first if I were to re-evaluate now.


[1]:

[To see links please register here]

Reply

#8
[Morris.js][1] is nice and open source. I would like to choose it comparing to highcharts. There is a new great video tutorial from [Railscasts][2]


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply

#9
I just started using googlecharts for my rails 3 project. It is nice and clean, and seems to be the only google visualization api based gem which is alive. Others are inactive and mostly use the old google charts api (released somewhere in 2007-2008).

[To see links please register here]

Reply

#10
I have started using [protovis][1] to generate SVG charts with javascript. My basic approach in rails is to have a controller that returns the data to be charted as JSON, and scoop it up with a bit of javascript and protovis.

Only downside, is that full IE support (Since it is based on SVG) is currently unavailable straight out of the box... However, current patches go a fair way to providing IE support, details of which can be found [here][2].


[1]:

[To see links please register here]

[2]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through