SVGGraph 2.11
Published
This new version of SVGGraph contains some quite major changes, mainly to support a new method of specifying the data to show on the graphs. I've called the new data format “structured data” and you can read about it on the new structured data page.
The main advantage of the new structured data format is that it allows for bundling other information along with the data fields. At the moment this is limited to tooltips, colours, labels, links and the text shown on the X-axis, but I plan to add more support in future.
Another advantage of the new format is that it allows for extra data fields for graphs that show more than X and Y coordinates. The new other graphs page has four graph types that make use of this feature to implement floating bar graphs, bubble graphs and box and whisker graphs.
I've also added cylinder versions of the stacked and grouped bar graphs which you can see on the 3D bar graphs page.
There is a new back_round_clip
option that defaults to false,
disabling the clip path that was previously created for rounded background
rectangles. The clip path prevents the graph content being drawn outside the
rounded area if there is not enough padding to keep it inside, but it also
caused problems for users converting the SVG output to PDF using TCPDF.
The changes to support structured data could have made SVGGraph a lot slower, so I've put some effort into profiling and optimising this version. Even with the extra classes in version 2.11 my test graphs are building in just under half the time taken for identical graphs in version 2.10.
The new version is available from the downloads page.