You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OK, I've confirmed that at least the histogram case is indeed a result of plotly/plotly.js#7009.
Before 7009, when barmode was set to relative, the offsetgroup property of traces was ignored (as far as I am aware). 7009 introduced a change where offsetgroup is applied in relative barmode (and bars with the same category-axis value and offsetgroup are stacked), which has the effect that if two traces have different offsetgroup values, they appear as grouped bars even if barmode is set to relative or stacked.
This caused the change in behavior we are seeing for histograms, since px assigns an offsetgroup to each trace when creating the figure object.
Maybe the fix is as simple as removing offsetgroup from the traces in the generated figure object -- I'm not sure whether there's a reason for it to be there; still investigating.
There are a few charts that show differently with what's on master branch vs the latest release of Plotly.py:
1. Histogram with px
5.24.1:
Master branch:
2. Timeline with px
5.24.1:
Master branch:
3. Scatter with px
5.24.1:
Master branch:
The text was updated successfully, but these errors were encountered: