How do I add lines between individual data points?

I'm trying to make a scatter plot in Highcharts that only connects two distinct points to each other, but doesn't connect to other points. (To show the change in a data point over time).

Here I am illustrating my question. I wish there was a line between the points

[20, 20]

and [80, 80]

and a separate line connecting

[60, 40]

before [85, 60]

but no line connecting

[80, 80]

before [60, 40]

Is there an easily customizable way to do this, or do I have to manually render each line?

+2


source to share


1 answer


You can just add in null

between these points.

data: [[20, 20], [80, 80], null, [60, 40], [85, 60]]

      



Demo

+2


source







All Articles