-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
PX auto-detect orientation for box/violin/histogram #2331
Comments
Totally agree, all the more than |
I agree it would be great to have Plotly.js do this also but I think it's likely we can do it in PX in an afternoon of work, whereas we have fewer resources in JS-land... |
ok what I wrote was not clear enough. I meant that
(horizontal histogram) and
(horizontal box) work well in the sense that the orientation is automatically detected. |
Huh, interesting! Thanks for pointing this out! I guess PX interferes with this somehow. Would be good to have it stop interfering :) |
Ah, part of the reason for the box/violin case is that the JS layer puts the trace name on the opposing axis, which seemed wrong to me. |
and
|
the orientation is forced for
works as |
probably we could set the orientation only if the user specified it? |
This shouldn't error out:
And this shouldn't render a blank plot:
Because in both cases PX should be smart enough to set
orientation
. In fact, even if bothx
andy
are set, if one is categorical and the other isn't, we should be able to auto-detect the correct orientation (this would work well forbar
also).The text was updated successfully, but these errors were encountered: