views:

102

answers:

3

Hello there :)

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 :)

Thank you

A: 

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

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

Hi, thanks for your fast reply. Though I noticed that I clarified myself poorly. I need to save chart to a file on a disc like jpg or something, without rendering it :)
A: 

This might be able to do what you want: Gruff

sosborn
Hi. Thanks for the response, but one of the requirements was not being Gruff Graphing Library ;))
Haha, sorry about that, not sure how I missed it.
sosborn
A: 

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.

Paul Rubel
Hi. Thanks for the response. Google Chart API is great. I already considered doing it like this, but the problem is - sending not encrypted data. If I am missing something, or you could point me somewhere where I could read about secure communication with Google Chart API then please let me know :)
Alas, google doesn't seem to support charts over SSL. I'm curious about your threat model. You're already giving the data to google, whether SSL or not so that doesn't seem to be the big deal. If you're caching the data in any case you can server it up to visitors to your site over SSL, regardless of how google delivered it to you.
Paul Rubel