What functions are there to customise the graph, for example the width of the bars and the spaces between the bars.
I would like to reduce the gaps between the bars, and between the month labels.
What are there any functions that can perform these alterations?
The solution is simply to adjust the width of the columns (and possibly the graph itself).
You can use the function
BarPlot::SetWidth($aWidth)to set the column width (see also this example). This function is described in the class documentation here:Therefore you can either set the width of the columns as a percentage or as an absolute pixel width.
To set the width as a percentage, use a value <= 1.
e.g. 25%
$barplot->SetWidth(0.25);To set the width in pixels, use a value > 1.
e.g. 56 pixels
$barplot->SetWidth(56);Have a fiddle around until you get something you’re happy with.