-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Bug: Sometimes box and whiskers span multiple x axis ticks #4510
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
This looks like a bug! |
Here are the relevant lines:
plotly.js/src/traces/box/cross_trace_calc.js Lines 71 to 72 in 1f1b9b6
to compute the width of the boxes. I'm not sure what we can do at the moment to improve the behaviour in this situation w/o breaking other things. The easiest workaround is to set |
I believe we already have special logic for this case already for bar traces - specifically, on a category axis to disallow automatic widths greater than 1. |
As far as I understand, this issue is the box-variant of #1181 |
ha ok, I thought we had solved that but I guess it's still open for bars too |
@etpinard thank you for the workaround, it works nicely |
Merging into #1181 |
I think there is a bug, where plotly will make some box and whiskers overlap another x axis tick, for no reason that I can see.
Example of the problem:

Removing one box and whisker solves it:

Or adding one box and whisker solves it:

The three charts only differ by the number of box and whiskers with data, so I think this might be a bug?
The plotly chart objects fyi in order:
The text was updated successfully, but these errors were encountered: