SVGGraph 2.8
Published
The words "radar graph" have been on the SVGGraph to-do list for a very long time, and every time I've seen those words I've had the song "Radar Love" by Golden Earring stuck in my head for hours afterwards. With version 2.8 of SVGGraph I can finally remove those words from the list. I'll probably end up with a song by the Shadows stuck in my head instead.
The radar graphs are generated by the new RadarGraph and
MultiRadarGraph classes, which behave quite similarly to the
LineGraph and MultiLineGraph classes. I've added a
new page to explain how they work.
I've also added a third line graph type in this version -
StackedLineGraph. This is similar to the
StackedBarGraph, where the values from different data sets are
added together to get the positions of the data points. Of course, you could
have added the values together yourself beforehand and used the
MultiLineGraph class to get a similar effect, but
StackedLineGraph has the advantage of only filling the
space between the data lines, whereas MultiLineGraph fills beween
the data line and the X-axis.
There are a few new general options in this version: what
axis_text_space and axis_stroke_width do should be
fairly obvious, but force_assoc is a bit harder to describe.
This new section on the
axis and grid options page show an example of when you would want to use it.
I've found a fixed a few bugs too: the legend could not be dragged if the
tooltips were disabled because a Javascript function was not being included;
space was being left for the axes text even when show_axes was
set to false; axis labels were not being shown when the show_axes
was set to false.
For the downloads, visit the downloads page.
