Skip to content

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