Re: Zooming in/out of the graph and reset plot

722 views
Skip to first unread message

DNS

unread,
May 14, 2013, 7:30:34 AM5/14/13
to flot-...@googlegroups.com
The navigate plugin has a 'zoomRange' axis option that should accomplish what you want.  See the comments at the top of the plugin source for more info.

Resetting the plot depends on what exactly you're trying to reset.  Are you introducing new data?  If so, you can call setData, setupGrid, then draw.  If you simply want to redraw without changing the data, then draw is all you need to call.  The docs describe how those functions work, and the real-time updates example shows it in action.  You could also just call $.plot again on the same element.

shailesh singh

unread,
May 16, 2013, 6:30:16 PM5/16/13
to flot-...@googlegroups.com
Thanks it did. Is there away to zoom out completely? without re-ploting using $.plot(...)?

Vikas Kapoor

unread,
Mar 20, 2014, 6:40:45 AM3/20/14
to flot-...@googlegroups.com
Hey Shailesh,

I have the similar requirement.
Please can you explain how have you achieved it.

Thanks,
Reply all
Reply to author
Forward
0 new messages