Theory
A histogram displays grouped numerical data, often continuous measurements such as time, height or mass. Unlike a bar chart for separate categories, histogram bars touch when the class intervals are continuous.
The horizontal axis shows the class intervals. Their widths can be unequal, so a wider bar covers a wider interval.
The vertical axis shows frequency density, not frequency. Frequency density = frequency / class width. Work out class width by subtracting the lower boundary from the upper boundary.
The area of each bar represents its frequency: frequency = class width x frequency density. A tall bar is not necessarily the largest frequency if the bars have different widths.
For example, a class from 10 to 30 has width 20. If its frequency is 20, its frequency density is 20/20 = 1. Draw the bar across 10 to 30 with height 1.
To estimate the number in part of a class, take the corresponding fraction of the bar area. This assumes the data are evenly distributed within that class, so the result is an estimate.
Use the class boundaries and axis scales carefully. The modal class is the interval with the greatest frequency density: the tallest bar.