-
-
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
offsetgroup with horizontally stacked/relative bar traces #5007
Comments
Thanks for the report @neutralino - I'll see if we can find someone to work on this in the next cycle. If not, we can prioritize a pull request if you or someone else is able to put one together. Thanks - @gvwilson |
Interestingly, this seems to only be the case for plotly.py, in plotly.js it works fine: |
nice catch @my-tien - I'll see if we can find someone to dig into it in the next cycle. |
@gvwilson I am quite curious why there is a difference in behaviour, so I'm also digging into it a bit. @neutralino Just to make sure: Where did you try this code? Because the corresponding renderer extension in VSCode isn't yet upgraded to plotly.js 3.0.0 see here. But that means that neither rotation should display correctly in VSCode.
|
Ah I see, thanks @my-tien! Yes, I was trying it from both VSCode and PyCharm's notebook integration. Using the browser as the renderer works for me as well. |
It appears the feature to allow offsetgroup to work with stacked/relative bar traces (plotly/plotly.js#7009) does not work with horizontally oriented bar traces. Taking the example from the documentation
https://plotly.com/python/bar-charts/#grouped-stacked-bar-chart
if I reverse the x and y axis and set orientation to 'h', the traces are not separated by the different offset groups:
Using plotly 6.0.0.
The text was updated successfully, but these errors were encountered: