VFPX/FoxCharts

New property BarSpacing for bar groups

Opened this issue · 0 comments

On SingleData charts (bars and columns) BarsSpaceBetween determins the space between each individual bar. On multi data charts this value determins the space between the bar groups. The spacing between individual bars is hardcoded. In multi data charts bars overlap by one pixel - more or less, due to rounding issues. I don't know if that's on purpose, as the calculation for the space required uses the full bar width (if I remember that correct).
When I experimented with other gradients, I didn't like that. So I added an additional property BarSpacing which defaults to 0. A value of zero places columns side by side. Set BarSpacing to -1 to get the placing as before.

This is BarSpacing = 0

barspacing_0

BarSpacing = -20

barspacing_m20

BarSpacing = 2

barspacing_p2

Regards

Frank