For example; if I had a flot canvas graph and I wanted to be able to view a closeup of one of the areas, I want to be able to zoom into a specific area and have a scrollbar appear for horizontal and vertical panning so every section can be viewed. Is this possible?
Share
Anything is possible, but flot doesn’t support that by itself. Your best bet would be to use the panning and zooming functions built into flot (via the navigate plugin), but then for the scrollbars, you might have to overlay some fake scrollbars (perhaps using a div with
overflow:scroll, as @Wolfy87 suggested) and hook them up to the flot graph.Flot triggers
plotpanandplotzoomevents when the graph has moved, so you would use them to keep your scrollbars in sync.I haven’t seen anyone do this before, so I can’t point you towards an example. But the code doesn’t seem unreasonable to put together.