How to make a 2D histogram
-
Paste your data
Paste cells from a spreadsheet or upload a CSV with a number column for X axis and a number column for Y axis.
-
Check the columns
The 2D histogram picks its columns for you. Change any of them under Data.
-
Style it and download
Under Style, pick a look, colours, background and size, add a title and source, then download SVG or PNG.
What is a 2D histogram?
A 2D histogram divides the plane of two numeric measures into a grid of rectangular cells and shades each cell by how many data points fall inside it.
How to read it
Darker cells hold more points, so the darkest patch is where pairs of values are most common. Read the cell edges on the axes for the ranges, and look at the overall tilt of the dark region for the relationship.
When to use it
Where pairs of values pile up, counted in a grid of cells. It is one of the distribution charts, which show how values spread out, cluster and stray.
With a few hundred points or fewer, a Scatter plot keeps every individual value visible. For a smoother, less blocky picture of the same density, use Hexbin density or Contour density.
Tips for a better 2D histogram
- Use it once a scatter plot has thousands of points and the dots pile into a solid blob.
- Make the chart large enough that the dense region spans several cells, since cell size follows the chart dimensions.
- Trim far outliers first, because they stretch the grid and leave most cells empty.
Data you need
One row per item with a number column for X axis and a number column for Y axis. Column names can be anything; the chart maker matches columns by type, and you can change the match under Data.
| Session length (min) | Pages viewed |
|---|---|
| 4.8 | 3.7 |
| 6 | 6.1 |
| 7.3 | 6.6 |
| 3.8 | 4.2 |
| 7.2 | 5.4 |
| 3.6 | 5.4 |
| 7.1 | 9.1 |
| 5.8 | 5 |
Other charts for the same data
More distribution charts
Questions, answered
- What is a 2D histogram?
- A 2D histogram divides the plane of two numeric measures into a grid of rectangular cells and shades each cell by how many data points fall inside it.
- How do you read a 2D histogram?
- Darker cells hold more points, so the darkest patch is where pairs of values are most common. Read the cell edges on the axes for the ranges, and look at the overall tilt of the dark region for the relationship.
- How do I make a 2D histogram?
- Paste your data into the chart maker with a number column for X axis and a number column for Y axis. The 2D histogram draws as you type. Then pick a look and a size and download it as SVG or PNG.
- When should I use a 2D histogram?
- Where pairs of values pile up, counted in a grid of cells. It belongs to the distribution family of charts, which show how values spread out, cluster and stray. With a few hundred points or fewer, a Scatter plot keeps every individual value visible. For a smoother, less blocky picture of the same density, use Hexbin density or Contour density.
- Is this 2D histogram maker free?
- Yes. It is free with no sign-up, your data stays in your browser, and you can download the 2D histogram as SVG or PNG.