How to prevent Highchart from connecting the ends of the series?

Asked

Viewed 38 times

1

I’m creating a chart using Highcharts that shows results that end the following month, example from day 5 December 2015 to 4 de January de 2016.

inserir a descrição da imagem aqui

As you can see, in the image there is a line connecting day 5 to day 4 of the other month, this line only appears when the date ends the following month, how do I prevent that line to appear?

Link to the jsfiddle example: http://jsfiddle.net/SV7qy/3/

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

1 answer

1


Your lines are connected by the order you are going through and not by the "range" between one and the other.

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

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

http://jsfiddle.net/SV7qy/4/

  • Indeed, he believed that the highchart automatically organized in the order of datetime and not by the last order, strange this. Thanks!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.