✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
📊 Dash 2.0 is Arriving. Register here.

Un-Zoom Programatically

I have a Plotly.js chart. I can successfully zoom (by click-drag) and un-zoom (by double-click).

Is it possible to un-zoom programatically? I have tried calling newPlot and update without success.

How about doing
Plotly.relayout( figure, {
‘xaxis.autorange’: true,
‘yaxis.autorange’: true

Add this to a input key or keyboard event.