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

Automatically ENABLE panning but DISABLE zooming

Is there anyway to enable a user to pan on the y-axis but disable zoom on the y-axis completely?

Not at the moment unfortunately.

I’d recommend subscribing to https://github.com/plotly/plotly.js/issues/1876 for the most up-to-date development info on that front.

1 Like

Is there a way to make pan2d the default interaction type for scatter type charts? For my users I expect mouse wheel / scroll will be intuitive for zooming. Also, I’m using the react-plotly library, if that matters.

I found it here: How to select pan as default tool

With react-plotly it’s:

<Plot layout={ dragmode: 'pan' }/>

Yay!

1 Like