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
BARLEADINGSPACE
,
BARTRAILINGSPACE
, and
BARSPACE
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
and
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
--
TWiki:Main/TaitCyrus - 2011-05-10
Obsoleted plugin parameters:
-
BARLEADINGSPACE
-
BARTRAILINGSPACE
-
BARSPACE
since they had fixed pixel widths, replacing them with:
*
BARLEADINGSPACEUNITS
*
BARWIDTHUNITS
*
BARSPACEUNITS
*
BARTRAILINGSPACEUNITS
allowing for relative spacing to be defined. So a value of
2
is twice as wide as
1
.
In the process of making this change, some other bar sizing issues were found and fixed.
--
TaitCyrus - 2011-05-11