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
360
Axis Label nearer to x axis
posted

Hi Team,

Can you please let me know the setting that needs to be made to make the label nearer to  x axis .

In the mentioned image below the first two labels are not closer to the x axes .Can you please suggest?

All the labels need to closer to x axis and at the same level.Thanks in advance for all your extensive support

Regards.

Sridhar

  • 34830
    Offline posted

    Hello Sridhar,

    I have been investigating into this issue, and I would like you to take a look at the sample project I have attached to this post. In the sample project, I have created a chart that looks much like yours, but each of the labels - although exactly the same values as the ones you have - are as close to the X Axis as the "Diagnostic Voltage Modern Diagnostics" label in your screenshot.

    I am unsure how exactly to reproduce this behavior that you are currently seeing, but I feel like there may be something wrong with the AxisLabelSettings of your CategoryXAxis on your end. Currently, the only thing I have set on my end is an angle of -70, as this makes the labels look like yours. From the look of your screenshot, it appears that you likely have a similar angle, but possibly also a large extent or margin. Would it be possible for you to please provide more information about the XamDataChart that you are using if the attached sample project does not help you on this matter?

    Please let me know if you have any other questions or concerns on this matter.

    Sincerely,
    Andrew
    Associate Developer

    XamDataChartCloserLabelsCase.zip