SVGGraph 2.5

Published

There are no new graph types in this new version of SVGGraph, but there are quite a few changes. I've added three more marker symbols for line and scatter graphs ('cross', 'x', and 'pentagon'), an option for setting a line dash pattern for line graphs, line width options for non-line graphs (line graphs already had an option for this) and more of the line graph options support using arrays to provide the multi-line graph with different settings for each line.

One of the bigger changes is to the Javascript code. Instead of using inline event handlers (onmouseover, onmouseout, etc.) I have changed to using addEventListener from a function called when the SVG is loaded. All the parameters that would be passed to the functions in the onmouseover handler are now stored in Javascript variables at the start of the SVG file.

This separation of the events can produce a much more compact SVG file. A scatter graph with a large number of data points and tooltips enabled could be 40% smaller using the new event handler method. Unfortunately, the Adobe plugin for Internet Explorer does not support addEventListener, so if you want to keep tooltips working in IE you will have to fall back to using the old method - there's an option for that called compat_events.

The other big change is to the graphs with grids - I've added grid and axis subdivision options. The subdivision is disabled by default, but it supports most of the same options as the main divisions, including colour, size, minimum distance between subdivisions and fixed intervals in each direction. Subdivisions are not labelled on the axes.

The new version is available from the downloads page or from the main SVGGraph page, where I've updated the documentation and example graphs.

Coming soon: a slightly updated version of JPEG Saver should be my next release. I've got one big bug fixed, and I'm going to have a long testing session to see if I can find any more.

« Previous: TagCanvas 1.9 Next: JPEG Saver 4.2.2 »

This site uses cookies - details here.