Skip to content
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

Boxplots render as lines for datetime x-axis and multiple y-axes #3516

Closed
lemurey opened this issue Feb 5, 2019 · 4 comments
Closed

Boxplots render as lines for datetime x-axis and multiple y-axes #3516

lemurey opened this issue Feb 5, 2019 · 4 comments
Labels
bug something broken

Comments

@lemurey
Copy link

lemurey commented Feb 5, 2019

When using a datetime x axis and two y-axes single boxplots appear as vertical lines:
two axes
This also happens with a single y-axis and multiple plot types:
single axis
If you add a second boxplot on the same y-axis both render properly:
multiple box plots
Code example for case 1:
https://codepen.io/anon/pen/zeEKEo

@etpinard
Copy link
Contributor

etpinard commented Feb 6, 2019

Thanks for the report.

Very related to #3508

@etpinard etpinard added the bug something broken label Feb 6, 2019
@alexcjohnson
Copy link
Collaborator

FWIW what's happening is we don't know what width to give the boxes, because there are no other boxes on the same subplot to to give a distance to the next box, so they get a width of 1 - which for dates means 1 millisecond, hence on a scale of days it looks like zero width. You can fix this with an explicit width attribute (added recently in #3234, as @etpinard mentioned in #3508)

@etpinard are you thinking we can have boxes on overlaying subplots consider each other in width calculations? That seems like it would work for the first example, with boxes on each axis, and offhand I don't see any cases you'd want the existing behavior. Would you want to do this for stacked subplots as well? ie consider all boxes on the same position axis? That would be useful if @lemurey's
first example were converted to stacked subplots, though I can also imagine cases it might constitute a breaking change...

The second example (box + scatter) I don't really see any solution for except explicit width; there's really nothing to guide us in scaling the box.

@lemurey
Copy link
Author

lemurey commented Feb 6, 2019

@alexcjohnson Thanks for the note on width, I hadn't seen that, that will easily solve my immediate issue.

@gvwilson
Copy link
Contributor

Hi - this issue has been sitting for a while, so as part of our effort to tidy up our public repositories I'm going to close it. If it's still a concern, we'd be grateful if you could open a new issue (with a short reproducible example if appropriate) so that we can add it to our stack. Cheers - @gvwilson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug something broken
Projects
None yet
Development

No branches or pull requests

4 participants