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
405
how to set the x-axis labels in the center followed the x-axis line?
posted

Hi,

the range of my data is from -200 to 200 and I set ZeroAligned to true.

After set ZeroAligned to true, the x-axis line is start from 0 of y-axis, and it's position is in the center of this chart.

but the x-axis labels are still in the bottom...

the customer asks that these labels must near the x-axis line.

Could you please tell me how to set this x-axis labels position and let these labels can near the x-axis line? 

thanks!

  • 2406
    posted

    Hi,

    Try to use the LabelStyle.Dy property of the Label or SeriesLabel (depending what you are using) with a proper value:

    ultraChart1.Axis.X.Labels.SeriesLabels.LabelStyle.Dy = -100;

    Let me know if this helps.