Displaying 2 results from an estimated 2 matches for "theme_37sign".
2006 May 25
2
Have a quick Gruff Graphing question
...the minimum vertical scale on the left set to 800 and
have the bar/line graph scale to it?
My current code looks like this (with the labels and data array
populated elsewhere):
g = Gruff::Bar.new(750)
g.title = "12 Month Graph"
g.labels = title_array.reverse
g.theme_37signals
g.data("12 month graph", data.reverse, ''#378CDF'')
send_data(g.to_blob, :disposition => ''inline'', :type =>
''image/png'', :filename => "twelve_month_graph.png")
Thanks for any help.
--
Posted via ht...
2006 Jul 05
1
Need some Gruff graphing help - custom dimensions?
...ample above? Thanks for any help.
data = [1, 2, 3, 4, 5, 6]
g = Gruff::Line.new(500) #Sets scale to 500px, but I''d like 500 width
and 300 height
g.title = "Samplegraph"
g.labels = {1 => "Today", 3 => "Yesterday", 6 => "The Day Before"}
g.theme_37signals
g.data("Graph", data, ''#378CDF'')
g.maximum_value = 10
send_data(g.to_blob, :disposition => ''inline'', :type => ''image/png'',
:filename => "sample_graph.png
--
Posted via http://www.ruby-forum.com/.