score:1

Accepted answer

Use the xAxis.tickInterval option. In this case:

  xAxis: {
    tickInterval: 24 * 3600 * 1000,
    type: 'datetime',
    labels: {
      format: '{value:%Y-%m-%d}',
      rotation: 90,
      align: 'left'
    },
  }

Demo: https://jsfiddle.net/BlackLabel/t0Lohusx/

API Reference: https://api.highcharts.com/highcharts/xAxis.tickInterval


Related Articles