Image rendering on browser or temporary images?

Posted by Muralha on Stack Overflow See other posts from Stack Overflow or by Muralha
Published on 2010-03-30T16:26:08Z Indexed on 2010/03/30 17:23 UTC
Read the original article Hit count: 332

Filed under:
|
|
|

I'm trying to make a statistics page where it will show several data and charts.
The charts need to be pictures so that the user can save it/drag-and-drop to his/her personal reports.

I'm using Gruff Graphs for Ruby to produce the charts but I don't know the best way to display the results safe and protected.

Some of my ideas/tries are:

  1. save the chart to a file (jpg, png)? problem: data is available to anyone (don't have access to cron, to delete data from time to time)

  2. render in the browser (has to work on IE)?

  3. Use javascript (Raphaël—JavaScript Library) or Google API and output a PDF report (need plugin or gem, right)?

  4. use send_data? i've tried to output other way than inline, because I needs to show other data, is it possible?

Thanks for any help.

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about gruff