-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
question: Is it possible to disable interaction with a plot? #15
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
Comments
This can be done using one of The full list is found here: https://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.jshttps://github.com/plotly/plotly.js/blob/master/src/plot_api/plot_config.js Plotly.plot(graphDiv, data, layout, {staticPlot: true}) should do the trick. Moreover, note that in svg 2d plots, individual axis can be made fixed using the |
Thank you for pointing me to the code for this. I can see there's also a |
FYI, here are some examples of most of the configuration options: https://plot.ly/javascript/configuration-options/ |
Is this option available in python offline version? |
Yes, for python is also possible, just pass "config" dict to the plot.
|
Can this be done for a specific trace? There might be a better approach for what I want:
|
@PabloBotas you can adding your own custom legend click handlers. See #2581 |
If you pass |
In case anyone comes looking for this feature like I did for Choropleth plots:
|
Hi @jaspersardonicus ! Which module did you use for the Choropleth map? When relying on plotly.express dragMode=False throws an error when placed in the layout :( |
@xanderwallace85 I used |
@jaspersardonicus Thanks! Have you also tried to disable pan/drag with plotly.express? |
Not yet. I haven't even used plotly.express yet, sorry! |
Looks like that works for offline plots. |
I understand that the interactivity of Plotly is one of the things that make it so powerful, but there are a few situations when a static plot might be preferable. Are there ways to toggle (a) visibility of the modebar and (b) panning/zooming?
The text was updated successfully, but these errors were encountered: