Miguel Flores Miguel Flores - 1 year ago 101
Javascript Question

Combine xAxis Highcharts

I have a chart from

my problem is that for example... I have a line chart with 5 values (5 points) and my chart shows the xAxis like this
from value 1 to value 2: 0, 0.25, 0.5, 0.75, 1
, what I want to do is to remove
0.25, 0.5, 0.75
and keep only 0 and 1, then 1 and 2, etc... something like this:

enter image description here

How can I do that?

Here is a CodePen demo

Answer Source

You can control that with tickInterval:

    xAxis: {

        labels: {
            rotation: -33,



Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download