In bar charts, the way bar sizes are measured are based on fixed pixel sizes and should be calculated proportionally instead. Currently this plugin uses
and all are fixed pixel sizes. For wide charts, this works OK, but as the chart becomes narrower, these values no longer make sense since they can be proportially inaccurate and in extreme cases wider than there is actual room to place the bars in.
For example if a chart is 100 pixels wide and there are 10 data points, so 10 X-axis values, then there would only be 10 pixels for each data point/bar, and with the default values for
BARLEADINGSPACE = 6
BARTRAILINGSPACE = 6
, there would be no room for any bars since the spacing would require 12 pixels.
So the leading and trailing space along with the space between bars should be proportial
Obsoleted plugin parameters:
since they had fixed pixel widths, replacing them with:
allowing for relative spacing to be defined. So a value of
is twice as wide as
In the process of making this change, some other bar sizing issues were found and fixed.