i have created a graph. unfortunately, a line is always drawn from the last value to the first. what am i doing wrong?
example: https://jsfiddle.net/t6qbwdyL/
Highcharts expect data as sorted, so to fix your chart you have to sort your data, e.g. like in the demo below.Highcharts expects data to be sorted
This happens when creating a line series or a stock chart where the data is not sorted in ascending X order.
For performance reasons, Highcharts does not sort the data, instead it requires that the implementer pre-sorts the data.