score:1

Accepted answer

you can uses xaxis.breaks api documentation to skip weekends :

xaxis: {
  type:'datetime',
  tickinterval: 1,
  breaks: [{
    from: 1246579200000,
    to: 1246838400000,
    breaksize: 3600000 *48, // 2 days gap
    repeat: 604800000 // repeat every week
  }]
}

fiddle

score:0

if you use highstock, you can also enable ordinal option:

    xaxis: {
        ordinal: true
    },

live demo: https://jsfiddle.net/gh/get/library/pure/highcharts/highcharts/tree/master/samples/stock/xaxis/ordinal-true/

api reference: https://api.highcharts.com/highstock/xaxis.ordinal


Related Query

More Query from same tag