How do I prevent the Highchart from connecting the ends of the series?

1

I'm creating a chart using Highcharts that shows results that end in the following month, example December 5, 2015 January 4, 2016 .

Asyoucansee,intheimagethereisalinelinkingday5today4oftheothermonth,thatlineonlyappearswhenthedateendsinthenextmonth,howdoIpreventthislinefromappearing?

Linktotheexampleinjsfiddle: link

Note: The date is in milliseconds, on November 5 there is a value of 610, and on January 4, the value 0.

    
asked by anonymous 28.12.2015 / 21:22

1 answer

1

Your lines are linked by the order you are passing and not by the "range" between one and the other.

Then your array was passing some points that came before this "first" there, consequently as it is higher on the Y axis it ends up appearing, something that would not happen if it were on axis 0 because it would be "invisible."

I updated the fiddle for you to see, but the ideal would be to sort the dates, I just put it in a way that does not appear.

link

    
28.12.2015 / 23:26