Sr270
Posts: 83
Joined: Tue Aug 23, 2022 12:15 pm

Only one tick label is shown when zoomed

Hi,

I want the range of values to be shown when zoomed.

Three charts are displayed in the picture: https://ibb.co/Vmc2z9N
But shows only 4.67 on Y axis for chart1 and 1.45 for chart2... This is because all the plot points are 4.67 in that zoomedin area for chart1 and 1,45 for chart2 etc... I would like it show 4,3,4.4,4.5,4,6,4.7,4.8 something like that (at least 5 tick labels). Instead of blank Y axis (expect for just 4.67). It looks very confusing.
kamil.m
Posts: 892
Joined: Thu May 19, 2022 1:33 pm

Re: Only one tick label is shown when zoomed

Hi there,

Please have a look at the yAxis.tickAmount property. Alternatively, I'd also suggest looking into tickInterval, tickPixelInterval, tickPositioner and tickPositions.

tickAmount: https://api.highcharts.com/highcharts/yAxis.tickAmount

I'm sure that you will find something suitable for your usecase,
Regards!
Kamil Musiałowski
Highcharts Developer

Return to “Highcharts Usage”