Maintain plot in zoomed in state after on_click plotly_event

Hi @aj7777,

Welcome to the Streamlit community! :wave: :smile:

Thank you for sharing a reproducible example. This question has been asked previously and answered. Hereโ€™s the solution:

Note: the previous thread was purely using Plotly and not the streamlit_plotly_events custom component. Let us know if the attached solution doesnโ€™t work for you.

Happy Streamlit-ing! :balloon: