Disabling zooming and panning
See original GitHub issueI’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.
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (3 by maintainers)
Top Results From Across the Web
Disabling zoom and pan on a Map Chart - amCharts
Normally, you can pan and zoom the Map Chart wit mouse and touch. This tutorial will explain how you can disable one or...
Read more >Disable pan and zoom in OpenLayers - GIS Stack Exchange
I'm using the latest version of OpenLayers in my map application, and I need disable all zoom functions and panning for users.
Read more >How to disable zoom and pan in a geopandas map created ...
I've created a map with the explore() function in geopandas, but I want to fix the zoom level and disable mouse pan.
Read more >How do I disable Zoom and Pan in the post action callback?
To enable the ability to turn off pan or zoom in the post action callback, you must set the "ModeHandle" 's "Blocking" property...
Read more >Disable zooming and panning - LightningChart Support Forums
Is there a simple way to disable all zooming and panning by the user, while keeping other mouse interactions (highlights, moving cursors, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
In case anyone comes looking for this feature like I did for Choropleth plots:
dragMode=False
in the layout propertyscrollZoom=False
in the config propertydisplayModeBar=False
in the config propertyIn svg 2d plots, you can set
layout.xaxis.fixedrange: true
to disable zooming/panning along x and similarly usinglayout.yaxis.fixedrange: true
in the y direction. More info on the reference page.That said, this option hasn’t been implemented for the webgl and maps plot types yet.