Black Lives Matter. Please consider donating to Black Girls Code today.

How to disable just the zoom and pan interactions?

I would like to disable the zoom and pan interactions. For my graphs zoom and pan are not useful.
However I would like to keep the Hover interaction.

Thanks,

Nicholas

Here you go:


I need that feature too, but not with plotly.js – how to do that with normal py.iplot, e.g., with example from https:// plot.ly/python/ipython-notebooks/?

Thanks

@xpt Same place in the Python reference docs:

https://plot.ly/python/reference/#layout-xaxis-fixedrange

Thanks a lot Jack, finally got it working now.

For anyone that cares, I’ve upload my code to,

showing how to do fixedrange.

1 Like

I did not find “staticPlot: true” in the attribute reference. It should be added to the documentation.

staticPlot is documented here: https://plotly.com/javascript/configuration-options/