Skip to content

Zoomer programmatically changeable #391

Answered by wirew0rm
thhart asked this question in Q&A
Discussion options

You must be logged in to vote

As for your other question, the simplest way is to just change the data range of the axes (xAxis.set(min, max)). The zoomer will still work, but it will not be able to restore the old state by right clicking. You could add the current state manually to the deqeue returned by zoomer.zoomStackDequeue (look at the (private) pushCurrentZoomWindows() function to see what you would have to add there). On the other hand, panning and scroll-zoom are also not restoreable.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by thhart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #387 on April 14, 2021 08:01.