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

How to get predefined yaxis range after zoom out?

When I create a dcc.graph with a fix yaxis range defined in the layout:

‘layout’: go.Layout(title=‘Graph’, xaxis=dict(title=“Time”), yaxis=dict(… , range=[0, 100], …),

This works fine.

But after a zoomout event (doubleclick in the chart) the yaxis is autoscaled by the given data range. Is there a way to turn the autoscaling on zoomout off? Or exists any other way to solve this problem?