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
250
Basic Chart - Force Y axis to show labels at integer increments
posted

I'm displaying integer values in a XamChart, but sometimes the chart is showing non-integer increments on the Y axis. Is there a way to force the XamChart to show the labels and horizontal lines only at integer increments?

In this picture, the first bar has a value of 1 and the second has a value of 2, yet the chart is showing labels at bizarre decimal intervals.

  • 30692
    Offline posted

    If you manually range the axis you can achieve this. If you turn off auto range on the y axis, and set the minimum and maximum and unit to be integer values then the labels should have integer value. The auto range feature does not support a mode where it automatically tries to preserve the integral nature of the labels, however. You could make a feature request if this is important functionality to you.

    Hope this helps!

    -Graham