Closed GoogleCodeExporter closed 8 years ago
example code of the zooming.html
var startData = getData(0, 3 * Math.PI);
delete startData[0]['data'][11];
delete startData[0]['data'][12];
delete startData[0]['data'][13];
var plot = $.plot($("#placeholder"), startData, options);
Original comment by pandaz...@gmail.com
on 12 Apr 2012 at 4:38
The problem is that you're using JavaScript's 'delete', which doesn't actually
remove the array element; it just sets it to null. Flot, by design, treats
nulls as gaps in the line.
So this isn't a bug in Flot; you should use 'splice' instead of delete, so the
unwanted elements are actually removed.
Original comment by dnsch...@gmail.com
on 9 May 2012 at 1:00
Original comment by dnsch...@gmail.com
on 4 Jun 2012 at 2:38
Original issue reported on code.google.com by
pandaz...@gmail.com
on 12 Apr 2012 at 4:34Attachments: