I searched out the whole internet, but I couldn't find if there exists a zoomIn() method for flot chart or not just like the zoomOut() method which works really fine.
I need a zoomIn() method for the chart, please help...
Flot's navigate plugin provides the zoomOut()
and zoom()
method (the zoom()
method zooms in). The zoom()
method is pretty straightforward to use:
// zoom 200% in on the pixel (10, 20)
plot.zoom({ amount: 2, center: { left: 10, top: 20 } });