luftikus143
luftikus143

Reputation: 1285

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.

Upvotes: 4

Views: 4651

Answers (2)

AliRıza Adıyahşi
AliRıza Adıyahşi

Reputation: 15866

use tickInterval

yAxis: {
    ...
    tickInterval: 1,
}

Upvotes: 4

Gopinagh.R
Gopinagh.R

Reputation: 4916

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.

Upvotes: 9

Related Questions