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
365
Speciify the number of axis labels. Show minot stroke tickmarks.
posted

I have a scatterline series chart with 2 yaxes and one x axes.  How can I insure the number of axis labels is 12 , and stays 12 when zoomed in?  Do I have to calculate the labels and somehow set them or is there a way for the chart to figure it out?

 

Also, I need to show tick marks for the minor axes, no labels, and no grids.  How can I do that?

Parents
No Data
Reply
  • 30692
    Offline posted

    The only way to ensure the number of labels stays the same currently is to modify the interval setting of the axis as you zoom. If you handle the event actualWindowRectChanged on the chart you will know when the zoom level has been adjusted, and you can call getActualMinimumValue/getActualMaximumValue/unscaleValue in order to determine how to adjust the interval to ensure that the correct number of labels are visible.

    The current version of the chart favors picking a "nice" division over trying to keep the number of labels stable.

Children
No Data