Displaying charts in Ruby on Rails
Solution 1
http://ankane.github.io/chartkick/
Create Javascript charts with one line of Ruby
Solution 2
You can see other options of charts http://railscasts.com/episodes/223-charts
It is very easy to implement highcharts. Please see http://www.highcharts.com/demo/
Solution 3
Check out the graphing section at Ruby Toolbox: https://www.ruby-toolbox.com/categories/graphing. As already mentioned by Raji, Railscasts has a cast about charts as well, rails cast 223. There is also a revised railscast, unfortunately behind a paywall, and a railscast about chart events in real time.
Solution 4
I've used flot charts (http://www.flotcharts.org/) in a rails application and they worked great. They needed very minimal configuration and displayed my time series json data (metrics data) intuitively. Definitely recommend checking flot charts out.
bhargav
Updated on June 28, 2022Comments
-
bhargav almost 2 years
I want to display charts (bar, line , pie-charts etc.) in my Ruby on Rails application. I tried using Gruff and Scruffy. But found it crude and not easy to use. Then i came around googlecharts (http://googlecharts.rubyforge.org/) Can anyone site an example, how to use Google Chart in Ruby on Rails application ? Any input on this will be helpful.
Thanks, Bhargav
-
Christian about 11 yearsNote that Higcharts is Free for Non-commercial