-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Waterfall plot doesn't always plot the right axis range #2327
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thank you @AndreCNF I opened an issue in plotly.js to report the problem. You can use the axis attribute |
Changing the third value to 1 causes the seventh to dip below the base, so the axis resets to include zero, basically. Not a great behaviour, admittedly! |
In fact it goes to 0 not to negative values so there might be a precision here problem as well? |
Thank you @emmanuelle and @nicolaskruchten for looking into this issue! I see now that it resets the axis whenever it passes the base value (it happens in both directions, either when going from bigger than the base value to smaller than it, or vice versa). Is it possible to correct this behavior? Because this axis reset can make the data less readable (especially if the base value is much bigger than the relative changes) and, in some cases, the value 0 might not even make sense in the current context. |
I'm sorry I haven't followed up on this issue, but it should be resolved in the most recent version of |
@nicolaskruchten Yes, it's resolved. That's why I closed this issue. Thanks for the help! 🙂 |
Depending on the data values, when setting a base (i.e. initial value), the plot doesn't always adjust the axis range accordingly. For instance, where's a plot working as expected:
Now here's what happens when I change a single value in the data (in this case, I changed the third value from 3 to 1):
I'm using plotly 4.5.4 and python 3.7.4
Can anyone help me understand what I might be doing wrong or fix this issue?
The text was updated successfully, but these errors were encountered: