sangltdn / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 0 forks source link

Add max dinstance for connecting lines in line plots #266

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I would really appreciate an option for flot plots to only connect dots in
a line plot when their distance does not exceed a threshold. This is useful
if data points are missing e.g. from a timeseries plot. 

I hacked an ugly fix into a local version of flot, but that fix surely
breaks flot in other settings.

Original issue reported on code.google.com by tklu...@googlemail.com on 24 Nov 2009 at 9:29

GoogleCodeExporter commented 9 years ago
Hi!

You can preprocess the data yourself, just run through it and add a null in the 
data
where you don't want it connected, so it ends up looking like this

[[1, 10], [2, 12], null, [7, 8]]

It shouldn't be too hard to write a little Flot plugin to do it for you, then 
you can
add an option to the series and it'll look like Flot is doing the work for you. 

I don't want to add it to Flot itself, sorry, it is no doubt very useful but I 
have
to draw a line somewhere before it turns into a big data processing monster that
nobody understands.

Original comment by olau%iol...@gtempaccount.com on 7 Dec 2009 at 4:05

GoogleCodeExporter commented 9 years ago

Original comment by dnsch...@gmail.com on 4 Jun 2012 at 2:41