lazzhadji / flot

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

Interpolation of discontinuous data #694

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
  I'm using line chart with multiple series. Problem is, that some X axis values are missing in some series. In this case, lines on chart break (see before.jpg attachment).

  I suppose that in most cases this behavior is not a problem, but my client does not like it and wants to have continuous lines on chart, without "data points" in places where value is missing. Also it would be nice to show "missing" parts with dashed lines (see after.jpg attachment).

Original issue reported on code.google.com by aleksand...@gmail.com on 16 May 2012 at 11:04

Attachments:

GoogleCodeExporter commented 8 years ago
Currently this is by design; Flot plots exactly what you give it, which may 
legitimately include gaps.  The only way to emulate what you want is to 
interpolate and add more points before giving the data to Flot.

But I can definitely see what you're looking for, and agree that it would be 
useful.  I'm accepting this as an enhancement.

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

GoogleCodeExporter commented 8 years ago
Hi, thanks for answer. 

I've already implemented it as a plugin. I did not calculate additional points, 
just rendered missing parts in my plugin using existing data. Don't exactly 
remember the method, but it was something like "drawSeries".

I'm quite sure that this is not a perfect solution, but it did the trick for my 
project.

Original comment by aleksand...@gmail.com on 4 Jun 2012 at 8:32