Skip to content

Avoid stacked and overlapping histograms

baddistributionsmechanicalWilke 2019 p. 64Few 2012 p. 135

How do the shift distributions compare?

Illustrative check-in logs with 110 arrival waits per shift.

“Stacked histograms are confusing because the upper bars no longer share a common baseline”

Claus O. Wilke, "Fundamentals of Data Visualization", p. 64.

Also covered in Few 2012 (6 FUNDAMENTAL VARIATIONS OF GRAPHS, p. 135).

CVD preview

Before

Opaque histograms drawn on top of each other hide counts.

Download before Python code

After

Aligned panels give both distributions the same bins and count scale.

Download after Python code

Values

Two coarse histograms and a pooled density summarize arrival waits.

Two-minute bins show a longer right tail in the evening shift.