Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
X-axis Label Alignments
posted

Hi,

I have constructed a composite chart with one Area series of data. If I set the AxisLayoutLabelBehavior to Auto for the X-axis, it correctly adjusts the size, staggering, etc of the labels depending on how more data points exist and the size of the content in the labels.

Unfortunately the first and last labels do not align correctly with the data points on the chart. The labels appear to be drawn to the right of the data point (as if they have been right aligned) although I have set the alignment to be centered.

If I set AxisLayoutLabelBehavior to None (the default) the labels are aligned correctly but now the labels will overlap depending on their content.

Setting the option to UseCollection and attempting to add the behaviors manually (even none at all) mimicks the same problem no matter which AxisLabelLayoutBehavior that I use.

Is there a problem in the logic for drawing the labels thats causing the first and last labels to be drawn differently from the rest?

Cheers,
Craig

  • 17605
    posted

    The first and last labels are drawn differently probably because of the different available size that they have. Can you attach a screen shot of you chart, so we can investigate more closely?