The viewBox generated by the base renderer is incorrect, making the graphs all but disappear (they're drawn just to
the left of the visible region -- look at the generated .svg file with Inkscape). According to the SVG spec, the parameters
are <min-x> <min-y> <width> <height>.
In the source I have access to, this is initialized using
svg.svg(:xmlns => "http://www.w3.org/2000/svg", 'xmlns:xlink' => "http://www.w3.org/1999/xlink",
:viewBox => "#{options[:size].first} 100 #{options[:size].last} 200")
(Line 35 of renderers/base.rb)
It should be something like
svg.svg(:xmlns => "http://www.w3.org/2000/svg", 'xmlns:xlink' => "http://www.w3.org/1999/xlink",
:viewBox => "0 0 #{options[:size].first} #{options[:size].last}") |