It seems that stacked hists aren't stacking correctly when the traces have different sample sizes.  Example: https://codepen.io/plotly/pen/owPQqg Working Example: https://codepen.io/plotly/pen/BzqwbE (noticed this recently in the python doc example and I think it worked at some point despite different sample sizes).