How to configure y-axis label show interval


#1

How to configure y-axis label show interval?

for example, default y-axis label interval seems like 1 follow first figure.

how to configure show interval be 5, like second figure?


#2

Hi elmo,

There is a “majorTickFrequency” property you can set that should provide the behaviour you described.

Below is the code needed to get your chart’s Y-axis to look like the image you provided:

chart.yAxis.majorTickFrequency = @5;

Let me know if you have queries.

Kind Regards,
Andrew Polkinghorn


#3

Hi MrAPolk,

it works, very appreciate.