Skip to content

Make density area meaningful

wrongdistributionsjudgmentWilke 2019 p. 62Miller 2013 p. 119

What share of calls falls in each duration interval?

Illustrative durations for 24 support calls grouped into five intervals.

“area under the curve equals 1.”

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

Also covered in Miller 2013 (6 Creating Effective Charts, p. 119).

CVD preview

Before

Raw count heights give wider bins more area even when they contain the same number of calls.

Download before Python code

After

Dividing by bin width and total calls makes bar area equal the share of calls in the bin.

Download after Python code

Values

The intervals from 2 to 4 and 4 to 8 minutes each contain six calls, but the second bar has twice the area.

The two intervals each cover 25 percent of the total area, with heights of 0.125 and 0.0625 per minute.

Values used in both charts
Lower limit (min)Upper limit (min)CallsProbability density (per min)
0260.125
2460.125
4860.0625
81240.041666666666666664
122020.010416666666666666