sunjavagroups / flot

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

selection with external zoom problem #666

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I try to implement zoom after selection 
(i.e. .bind("plotselected", function(event, ranges){
 -get the selection and calculate new data
 this.flot.setData(this._zoomArray);
 this.flot.setupGrid();
 this.flot.draw();
 this.flot.triggerRedrawOverlay();
}

the zoom works nicely, but there are some funny leftovers from the old plot. 
For example I can highlight data points which are not present (in empty space). 
They were in the old data, but not in the zoomed data set (highlighing where 
there is no data point). If I do another zoom, the selection is selected on the 
original range i.e. I can not zoom consecutively. Is there any way to really 
reset all stored arrays? including those for highlight and selection?

I tried .clearSelection() to no effect

Best

Stefan

Original issue reported on code.google.com by stefanha...@gmail.com on 8 Feb 2012 at 4:25

GoogleCodeExporter commented 8 years ago
This was my own error. I plotted two plots one over the other. Upon zoom, one 
plot was zoomed, but the other retained data...

Original comment by stefanha...@gmail.com on 14 Feb 2012 at 3:33

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 8 May 2012 at 7:51

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 9 May 2012 at 12:50