user393964
user393964

Reputation:

Show label only every x number of steps in highcharts

I have this HighCharts chart that has more than 50 values on the x-asis. That's way to many, and I'd like to only show a value every x-number of steps. Any ideas how this can be done?

Upvotes: 5

Views: 5063

Answers (2)

houss
houss

Reputation: 700

xAxis: { categories: myArray, tickInterval: 5 }

minTickInterval will only prevent showing smaller units if you zoom too much

Upvotes: 1

Alexander Larikov
Alexander Larikov

Reputation: 2339

Change following bit of code by adding minTickInterval

xAxis: {
    categories: myArray,
    minTickInterval: 5                        
},

Jsfiddle

Upvotes: 12

Related Questions