Highcharts line chart tooltips not showing correctly?

I am trying to create a simple line chart, but something strange is happening with the hints. It seems that only the first and last point shows the tooltip data, for some reason it cannot display anything in between. The diagram is pretty simple, so I'm not sure what it could be if it has nothing to do with the datetime axis?

I would be grateful for any ideas.

http://jsfiddle.net/kJ47n/

edit: Here is an even simpler version of http://jsfiddle.net/kJ47n/1/

+4
source share
1 answer

I think the problem is that your X values โ€‹โ€‹are unsorted, I sorted the array by X value and it works fine, look:

http://jsfiddle.net/9H6h2/

Or your dataset is wrong, something like this makes sense to me:

var ldlData = [[100,1336535631000], [110, 1304913231000], [120, 1273377231000], [130, 1241841231000], [140, 1210305231000], [150, 1178682831000]]; 

Hope this helps!

+9
source

Source: https://habr.com/ru/post/1411495/


All Articles