I am using Flot successfully to chart usage for a project I am working on with a time series. The flot graph starts with the last 24 hours and allows panning and zooming.
The data is being sampled on the server every 15 minutes, converted to json and downloaded by the flot graph via busy-polling with AJAX (it checks for changes).
After a couple of months I have so much data (of course) that the array has become rather large. I would like to limit the json downloaded from the server to only contain the visible spectrum of the flot graph. To limit the initial download is easy, but I don't know how to handle the panning and zooming. I already have event handlers bound to panning and zooming, but they fire for every move (panning in particular).
Is it possible to detect when panning starts and ends?