Gantt charts have been on the to-do list for a very long time, so when someone asked me about them recently I went through all the things I needed to get them working and realised I already had most of it. So here they are.
These are a type of horizontal floating bar chart where the bars represent lengths of time. They are used for project management, showing how long various tasks are expected to take and how far they have progressed. Here is an example:
In this version I have support for task bars with internal percentage completion gauges, project group bars and milestones. Task dependencies are not supported in this version, but I expect to get around to implementing them before too long.
This is just a quick update to SVGGraph, fixing a whole load of warning messages that appear when you use PHP 8.1 with SVGGraph. The warnings are almost all about things that will break in PHP 9 (whenever that is going to arrive) but that work fine at the moment.
Of course, the warning messages themselves break things quite horribly, so most of the changes in this version are adding short attributes that mean "I know this is going to break in PHP 9, I'll fix it then." The reason I didn't fix all of these things properly now is that it would require PHP 8.x - and I'd like to at least keep PHP 7.x supported for now.
The updated version is available from the downloads page or from GitHub, etc.
In this new version of SVGGraph there are some new graph types, a couple of options that improve some other things and sundry other updates and fixes.
Curved lines and shifted markers
The first change is something that has been on the to-do list for a very
long time - curved lines on line graphs. The example below shows the new
line_curve option used on a bar and line graph, but it works on
all the line graphs and the radar graphs too.
For this example all the lines have the same curvature, but it is a per-dataset option so you can specify how curved you want each line to be.
Just a small update to JPEG Saver this time - though it should be a useful one.
Items and styles
Until now there was a Styles tab and there was an Items tab, and they didn't interact much. You could choose one of the styles to use with text-based items, but it wasn't very user-friendly. This update aims to fix that.
The Styles tab hasn't really changed, and neither has the Style editor dialog. They do both use an updated style preview control though, which you can click on to refresh with a new random string (or maybe the same one - there are only 10 that JPEG Saver will pick from).
The last couple of SVGGraph releases haven't been very interesting, but version 3.12 actually contains some new graph types. The first of these has been on my to-do list for a very long time, so here it is.
Shouldn't a 3D donut graph really be a torus?
I put 3D donut graphs on my list of things to add back in 2016, but nobody actually asked about them until now. It turned out to be a bit easier than I had expected, and now donut graphs are available in eight different flavours.
These donut graph types support all the relevant options from the 3D pie graphs
and exploded pie graphs, and you can still use the
to add text in the middle.