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
235
How to hide empty space between x Axis and Chart
posted

Hello,

how can I hide the x Axis empty space between the chart and the scroll bar?

Parents
No Data
Reply
  • 34830
    Offline posted

    Hello Markus,

    From the attached screenshot, I am rather curious how you are going about hiding your X axis for your XamDataChart, but from how it looks, it looks like you are setting the Visibility property of the axis itself, which would still accommodate some room for where the labels would be on your x axis. Although, unless you were setting a label extent or something along those lines, I can't see why the space would be so much.

    If this is the case, and you are setting the Visibility property on your axis, I would recommend writing a new AxisLabelSettings object for your axis instead and setting the Visibility property to "Collapsed" there. This will eliminate the space allotted for the x axis labels. Assuming you are using the CategoryXAxis, sample code for this could look like the following:

    <ig:CategoryXAxis>
    <ig:CategoryXAxis.LabelSettings>
    <ig:AxisLabelSettings Visibility="Collapsed" />

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

    Sincerely,
    Andrew
    Associate Developer

Children