-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Disabling zooming and panning #59
Comments
In svg 2d plots, you can set That said, this option hasn't been implemented for the webgl and maps plot types yet. |
Oh, I missed them. Thanks for the fast response! |
@buremba All good 🍻 It is a pretty hidden feature. |
How to do this for tables created via figure factory viz. |
Please ask your questions on https://community.plot.ly/ |
@etpinard Thanks :) |
I did not find “staticPlot: true” in the attribute reference. It should be added to the documentation. |
This option disables browser-page optical zoom on tablets when a user tries to zoom the page by placing his fingers on the graph. |
Why does putting xaxis.fixedrange: true, yaxis.fixedrange: true on the graph change the mouse cursor to pointer, as if the whole graph is clickable? |
In case anyone comes looking for this feature like I did for Choropleth plots:
|
@jaspersardonicus That was helpful. As far as I understand, in python, we can provide those configuration options to
I am using streamlit to show a plotly chart and cannot use the show() function, which opens the choropleth map in new window. Is there any other way we can set these config options. Any help is appreciated. Thanks Saw the issue |
For people stumbling, here from the internet - https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js has the reference for all the config options, if you set |
I'm aware that there is
staticPlot
option for disabling these features but it actually disables all interactive operations including tooltips and legends.For charts that don't have much data points, these features unnecessary so it would be great if you guys add an option to disable zooming, panning and dragging.
The text was updated successfully, but these errors were encountered: