Hi! Is it possible to align the zeroes of the axes of a barplot and scatterplot which have negative values? rangemode = ‘tozero’ is doing what I need, but it does not work with negative values. Here is a sample code
The first screenshot is the output of the code and the second is what I’m trying to achieve.
(I manually dragged the right axis on the second screenshot.)
I am a Dash Newbie and might be getting the wrong end of the stick, but are you able to set the same range somehow for both subplots to ensure they line up?
e.g. in my streaming chart, I constantly update the y range to ensure my share price does not fall off the plot…
Thanks for your answer @umernalla !
Indeed I had to adjust the ranges, but unfortunately it was not that simple. I went through a several posts from other people on this topic and the only thing that worked was this rather long, but well explained solution here:
I hope that this will be integrated into the plotly libraries in the future so it wouldn’t be necessary to go through all the steps manually.