I have been fiddling with .net charts all afternoon long, I haven't worked out the proper way to get a chart to use 100% of its available width as X-Axis get rotated for clean display.
- Example 1:
- Example 2:
We can see that Example 2 behaves rather normally when AxisX.LabelStyle.Angle
is set to 0. In Example 1, setting that property to -45 reduces the chart's width abnormally! I would understand an offset by a few pixels to account for the largest label overflow to the left, but there's way more than that which is blank to the left.
When you output in a document several such charts with varying X label sizes, the result is simply horrid.
How can I tweak my charts to not have their width affected by the labels on the X-axis when these are rotated ?
UPDATE:
this is the desired output, consider the yellow box is the zone to which the chart should be stretching to