3

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

3

4 Answers 4

14

https://github.com/ankane/chartkick

Create Javascript charts with one line of Ruby

4

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/

1
  • 1
    Note that Higcharts is Free for Non-commercial
    – Christian
    May 13, 2013 at 12:44
1

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.

1

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.