winston/google_visualr — Issue #20: Info/feature request
Author: lgs
Created: 2011-11-25 20:45:20+00:00
State: open

Is there a way to get the google chart image on a file/db, instead of inject the iframe into the view ? Something I can store the way https://github.com/mattetti/googlecharts currently do like the following :

chart = Gchart.new( :type => 'line',
:title => "example title",
:data => [[17, 17, 11, 8, 2],[10, 20, 15, 5, 7],[2, 3, 7, 9, 12]],
:line_colors => 'e0440e,e62ae5,287eec',
:legend => ['courbe 1','courbe 2','courbe 3'],
:axis_with_labels => ['x', 'y'],
:axis_range => [[0,100,20], [0,20,5]],
:filename => "tmp/chart.png")

# Record file in filesystem
chart.file