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
885
Rendering number of Labels on Axis
posted

How do I set number of Labels to be displayed for an Axis. For example I want to show always six meaningful labels for an Axis irrespective of amount of data it represents. Even If I zoomed into any interval, the numer of labels should be fixed on that Axis.

Can anyone suggets me, how should I get this feature?

 

Parents
No Data
Reply
  • 26458
    Offline posted

    This can only be done for numeric or time axes.

    ultraChart1.Axis.Y.TickmarkStyle = AxisTickStyle.Percentage;
    ultraChart1.Axis.Y.TickmarkPercentage = 100 / 6;

    This, however, will not preserve the number of labels when you change the zoom level. You will have to recalculate the tickmark percentage based on the current axis ScrollScale.Scale property value.

Children
No Data