Displaying 3 results from an estimated 3 matches for "point_markers".
2006 Nov 10
2
How to integrate Scruff Images
...cision => 0)
graph.add :stacked do |stacked|
stacked.add :bar, ''Jack'', [30, 60, 49, 29, 100, 120]
stacked.add :bar, ''Jill'', [120, 240, 0, 100, 140, 20]
stacked.add :bar, ''Hill'', [10, 10, 90, 20, 40, 10]
end
graph.point_markers = [''Jan'', ''Feb'', ''Mar'', ''Apr'', ''May'', ''Jun'']
graph.render(:width => 800, :as => ''JPG'')
end
And in my views rhtml page I put this:
<%= generate_img %>
Unfor...
2007 Feb 19
2
Integrate scruffy graph in rails view?
Hi everybody,
I''m using scruffy to create some graphs, and would like to integrate
them into a regular view (i.e. show them in an <img> tag).
However, I get errors when using img_tag, or the image doesn''t load if
I try saving the graph to disk and then loading them in html.
Generating the graph and linking to it works, however then I only have
the graph open in a new
2007 Nov 05
0
Scruffy > MVC architecture?
...ers::Percentage.new(:precision
=> 0)
graph.add :stacked do |stacked|
stacked.add :bar, ''Jack'', [30, 60, 49, 29, 100, 120]
stacked.add :bar, ''Jill'', [120, 240, 0, 100, 140, 20]
stacked.add :bar, ''Hill'', [10, 10, 90, 20, 40, 10]
end
graph.point_markers = [''Jan'', ''Feb'', ''Mar'', ''Apr'', ''May'', ''Jun'']
graph.render(:width => 800, :as => JPG)
But how must i place this in the MVC architecture??
Grtz..remco
--
Posted via http://www.ruby...