Search⌘ K

What is a Histogram?

Explore how to build histograms using D3.js to display the distribution of values in a dataset. Understand the difference between histograms and scatterplots as you learn to represent frequency and range effectively. This lesson guides you through creating dynamic histograms with weather data, including interactive features like switching metrics and adding statistical markers such as median and mean.

We'll cover the following...

The first project for this section is to draw a histogram. Histograms are great at showing a distribution of values. Let’s look at why we might want to draw a histogram.

Here is the scatterplot we drew in an earlier lesson. Scatterplots are great at showing the relationships between two metrics. It answers the question of whether or not one metric affects the other.

Frequency

What if our question was how frequently a value appears? It’s sort of hard to tell because the data is all over ...