I have been using flot to create a graph with zooming and tracking (so that the legend updates with the values of the graph when the mouse is hovering over the canvas).
The tracking works fine when it is originally loaded, however when I zoom in the tracking no longer works.
I use this code to 'bind' the tracking of my graph:
- updateLegendFuntion = function(event, pos, item)
- {
- latestPosition = pos;
- if (!updateLegendTimeout)
- updateLegendTimeout = setTimeout(function() {
- updateLegend(plot, legends)
- }, 50);
- }
- $("#placeholder").bind("plothover", updateLegendFuntion);