✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
🧬 Learn how to build RNA-Seq data apps with Python & Dash. Register for the May 20 Webinar!

Is it possible to set a maximum zoom factor on a plot?

I have a simple 2D area plot that allows zooming in the x-axis. I’d like to limit the degree to which zooming is permitted, say to 10x original scale. Does Plotly have or enable such a feature? I’ve searched the docs, but to no avail.

Similarly, is it possible to limit the scroll extents to not go “outside” the data?

We don’t allow setting maximum (nor minimum) zoom levels at the moment unfortunately.

Is this still accurate or has there been any changes in setting the min and/or max zoom? I have a world map that I would like to set a minimum zoom on. Thanks.