sarsar
May 22, 2020, 10:39pm
1
Hey everyone…
any update on this?
etc this problem : https://stackoverflow.com/questions/47247105/how-to-automatically-adjust-plotly-y-range-on-price-chart
and this :
I have this : fig.update_yaxes(autorange=True,fixedrange = False)
but it’s still ugly and like that.
2 Likes
sarsar
May 23, 2020, 10:40pm
2
anyone? I think this is very important for some charts.
I believe this is a long-requested feature and I think this is the overarching bug:
Axis auto-range improvements · Issue #1876 · plotly/plotly.js (github.com)
Also for reference:
Update y-axis range when x-axis rangeslider is used · Issue #912 · plotly/plotly.R (github.com)
Rescale y-axis for graphs with x-axis rangeslider (Python) · Issue #932 · plotly/plotly.py (github.com)
Also this thread:
Afaik, y-axis cant be made to auto scale when using x-range sliders. Y range is chosen with respect to the y values of the whole x range and does not change after zooming-in. This is especially annoying with candlestick charts in volatile periods. When you zoom-in using x-range slider, you essentially get flat candlesticks as their fluctuations only cover a very small part of the initial range. After doing some research it seems that some progress has been made here: https://github.com/plotly/pl…
I had to implement my own solution using buttons and the relayout method mentioned on the last thread, but it is driving me to move to another library like Bokeh instead of Plotly. With how long these bugs have been open, I’m not sure when they will get traction/sponsorship.
1 Like