Announcing Dash Bio 1.0.0 🎉 : a one-stop-shop for bioinformatics and drug development visualizations.

Change range of yaxis according to current screen data

Hi. I’m using plotly.py and designing a graph of candlesticks. But I want to change the range of y-axes dynamically according to current data on graph. For example, if I’m sliding the graph the current data on screen is 50 to 100, then change the range in to this. And if values increase or decrease then range also change.

df=pd.read_csv('tsla.csv')
fig = go.Figure(data=[go.Candlestick(x=df['Date'],
                open=df['Open'],
                high=df['High'],
                low=df['Low'],
                close=df['Close'])])
                
fig.write_html('first_figure.html', auto_open=True)

This is my code.
And the demo graph, you can find here

This isn’t a built-in feature at this time, but there’s an issue open here if you want to follow development progress: https://github.com/plotly/plotly.js/issues/1876