highcharts end point to endpoint connection

Viewed 40

in my chart highcharts connect the start and end point of the graph. I dont want this to happen . how can I solve it. js fiddle link:https://jsfiddle.net/mdng223/h2o57agx/ My question is similar to this but have not got the solution provided herehttps://www.highcharts.com/forum/viewtopic.php?t=43018

Highcharts.setOptions({
  global: {
    useUTC: false
  }
});

Highcharts.chart('container', {
  chart: {
    zoomType: 'x'
  },
  tooltip: {
    xDateFormat: '%d/%m/%Y',
    shared: true,
    split: false,
    enabled: true
  },
  title: {
    text: ''
  },
  xAxis: {
    type: 'datetime',
    crosshair: {
      snap: true
    }
  },
  legend: {
    enabled: true
  },
  series: [{
    data: []
 },]
});
2 Answers

it works fine you have to add .sort() at the end of your data array to solve this issue

Related