Charts library for Ruby

2019-04-05 20:51发布

I am looking for a quite specific tool for generating charts, within Ruby on Rails application. I have done a research and couldn't find a solution that suits me.

Maybe you've bumped upon it and could just point me to it with a link? :)

My requirements for a solution are:

  • it has to feature basic chart types like Pie, Bar, Stacked Bar, Line.
  • it has to have basic configuration of a chart like legend, axis description.
  • it has to be able to generate and save chart into image file without actually rendering it in a browser
  • being a Ruby library would be nice, but it is not obligatory
  • not being Gruff Graphing Library, I am looking for something more up to date, with less issues.

If you are aware about something, please post a link - it'll take you just a few seconds.

8条回答
可以哭但决不认输i
2楼-- · 2019-04-05 21:28
我欲成王,谁敢阻挡
3楼-- · 2019-04-05 21:30

Chartkick!!!

It's super nice. =)

查看更多
家丑人穷心不美
4楼-- · 2019-04-05 21:39

The only one that has satisfied all these conditions:

  • I have been able to make it works without need of install weird dependencies
  • Not has an HTML context requirement (all JS libraries)
  • Not depends on GCharts (net traffic dependency)
  • Exports to static graphic format

is gerbilcharts

查看更多
该账号已被封号
5楼-- · 2019-04-05 21:39

I am using openflashchart http://pullmonkey.com/projects/open_flash_chart2/

you can save generated json data in database and render when needed

查看更多
Juvenile、少年°
6楼-- · 2019-04-05 21:44

You can use rchart for plotting various chart.

查看更多
看我几分像从前
7楼-- · 2019-04-05 21:45

I've made a number of useful charts with the Google Chart API. There are a few gems: googlecharts, gchartrb. I haven't used them but they look like a good first cut.

As to not displaying it you can just make the call and save the result. No need to render, just make the call, get the URL, and fetch the file.

查看更多
登录 后发表回答