What is your preferred way to produce charts in a Ruby on Rails web application?

后端 未结 30 1839
后悔当初
后悔当初 2020-12-12 08:47

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.

<
相关标签:
30条回答
  • 2020-12-12 09:22

    gem 'chart' makes it easy to add ChartJS and NVD3 charts to rails.

    0 讨论(0)
  • 2020-12-12 09:23

    In the old days, I decided to roll my own (using RVG/RMagick), mainly because Gruff didn't have everything I wanted. The downside was that finding and eliminating all the bugs in graphing code is a pain. These days Gruff is my choice as it's really gone forward in terms of customization and flexibility.

    The standard Gruff templates/color choices suck though, so you'll need to get your hands dirty for best results.

    0 讨论(0)
  • 2020-12-12 09:23

    I personally prefer JavaScript-based charts over Flash. If that's ok, also check out High Charts. A Rails plugin is also available.

    0 讨论(0)
  • 2020-12-12 09:23

    HighChart - A charting library written in pure JavaScript

    Gems like highchart-rails, lazy-high-chart makes the integration with rails easier

    0 讨论(0)
  • 2020-12-12 09:25

    GoogleCharts and Gruff charts are great, but sometimes they lack some features that I need for more scientific plotting. There is a gem for gnuplot which may be helpful for some of these situations.

    http://rgplot.rubyforge.org/

    0 讨论(0)
  • 2020-12-12 09:26

    The new Google Visualization appears to produce charts that are of more varied type, better looking and interactive than Google Graphs.

    http://code.google.com/apis/visualization/

    0 讨论(0)
提交回复
热议问题