Nevron Forum

Inconsistent spacing with WidthPercent

https://www.nevron.com/Forum/Topic5846.aspx

By Nick Howard - Friday, November 11, 2011

When I set the WidthPercent property for a bar chart I get inconsistent spacing between the bars. Have you seen this behavior? I'm setting bar.WidthPercent = 95. If you open attached emf file you'll see that the spacing between the groups is inconsistent. Some are 3pt and others are 4pt. Is there a way to fix it on my end?

Thanks for any help, I really appreciate it.

Thanks,
Nick
By Nevron Support - Monday, December 5, 2011

The widths of clustered bars can be specified only relatively (in percent of the X axis's category width). This results in different pixel widths for the individual bars (because of pixel snapping). At this point there is no applicable workaround.