question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Disabling zooming and panning

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
jaspersardonicuscommented, Jul 2, 2020

In case anyone comes looking for this feature like I did for Choropleth plots:

  • The option to disable panning: dragMode=False in the layout property
  • The option to disable scrolling: scrollZoom=False in the config property
  • The option to disable map controls: displayModeBar=False in the config property
7reactions
etpinardcommented, Dec 1, 2015

In svg 2d plots, you can set layout.xaxis.fixedrange: true to disable zooming/panning along x and similarly using layout.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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found