Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mrc-5446 Fix reset axes button #215

Draft
wants to merge 5 commits into
base: mrc-5443
Choose a base branch
from
Draft

mrc-5446 Fix reset axes button #215

wants to merge 5 commits into from

Conversation

EmmaLRussell
Copy link
Contributor

@EmmaLRussell EmmaLRussell commented Aug 5, 2024

The 'Reset axes' button (the 'Home' icon button in the plotly mode bar) became broken when we introduced keeping x-axis consistent across graphs - this is because we added additional relayouts which specified both x and y ranges (retaining user selected y range if any), and these ranges were re-applied when "Reset axes" was clicked, rather than resetting x and y axes to full range, which I think is what user would be expecting. The only exception is if "Lock y axis" is selected in graph settings - in this case, x axis is reset but locked y range is still applied.

This was implemented by overriding default modebar button behaviour and replacing it with autorange relayout.

NB This branch is based on mrc-5443 and should be re-pointed to epic branch mrc-5490 when mrc-5443 is merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant