Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Step interval of "1" not working for me in Highcharts, why?

I want to show every single label in my chart (and there are only five of them). But for reasons I don't understand, my

 label: { step: 1 }

is getting ignored. Here is the fiddle.

Thanks for any hints what I've overseen or not understood.

like image 530
luftikus143 Avatar asked Dec 16 '22 13:12

luftikus143


1 Answers

Instead of using

labels:{ step : 1 }

try using tickInterval on y axis.

yAxis: {
         tickInterval:1
       }

labels:{ step : n } using this will display every nth label of the axis.

Try the fiddled version here.

like image 92
Gopinagh.R Avatar answered Jan 14 '23 15:01

Gopinagh.R