I’m running the Scruffy example for a line graph from
http://scruffy.rubyforge.org/. My code is
graph = Scruffy::Graph.new
graph.title = “Sample Line Graph”
graph.renderer = Scruffy::Renderers::Standard.new
graph.add :line, 'Example', [20, 100, 70, 30, 106] graph.render :to => "line_test.svg" graph.render :width => 300, :height => 200, :to => "line_test.png", :as => 'png'
The output is severely cropped, showing only an incomplete graph (see
attached .png file).
I’ve played with the :width and :height parameters, but just make things
worse. Can someone shed some light on this?