do the bars in a histogram touch

Do Histogram Bars Touch?

By Robert Clark
AD

One of the most curiosities that often arise about histograms, those humble yet powerful visual tools for representing data distribution, centers around the spaces between the bars. Do the bars in a histogram touch, or are they separated by infinitesimal gaps? The answer, as with many things in statistics, lies in-between.

Let's start by understanding the basics. Histograms, by their nature, represent frequencies or counts. Specifically, each bar in a histogram represents a count of the number of times a value occurs in a dataset. Now, consider the bars themselves. Are they representing individual data points? Not quite. Instead, they represent ranges of data that fall within a certain interval.

Bar Width and Intervals

The width of each bar in a histogram is determined by the size of the class intervals, which are the ranges of values that the bars represent. These intervals are not arbitrary but are chosen based on the data and the desired level of granularity. In theory, the width of these intervals could be adjusted to any precision, regardless of how minute.

AD
How to Read and Use the Histogram in Lightroom and in Your Camera
How to Read and Use the Histogram in Lightroom and in Your Camera
Histogram in Images & Learn a Histogram • PhotoTraces
Histogram in Images & Learn a Histogram • PhotoTraces
a bar graph with the number of people in it
a bar graph with the number of people in it

However, in practical terms, the intervals are usually chosen to balance between providing enough detail to understand the data distribution and not over-complicating the visualization. It's this width of the class intervals that determines the width of the bars in the histogram. Thus, the bars in a histogram never actually touch; there's always a space between them, albeit maybe too small to notice with the naked eye.

The Impact of Interval Width

Imagine stretching a rubber band, representing the intervals of a histogram. If you stretch it wide, i.e., use large intervals, the bars in your histogram will be farther apart. Conversely, if you squeeze the rubber band, i.e., use small intervals, the bars will be closer together. In the extreme, as you squeeze it tighter and tighter, the space between the bars becomes smaller and smaller until, in theory, it approaches zero.

several different colored bars are shown in this chart, with the same bar on each side
several different colored bars are shown in this chart, with the same bar on each side
How to Read a Histogram in Photography | Never Lose Highlights or Shadows Again (2026)
How to Read a Histogram in Photography | Never Lose Highlights or Shadows Again (2026)
the bar chart is shown with two different types of bars and numbers on it,
the bar chart is shown with two different types of bars and numbers on it,

However, in practice, a histogram bar representing an interval of zero data points would make no sense. This extreme scenario also raises an important point: histogram bars cannot represent individual data points, and they cannot touch because there is no 'touching' between data points. Instead, they offer a representation of how those data points are distributed across certain ranges.

Stern distortions

While it might seem intuitive to imagine the bars touching when the intervals are tiny, consider the concept of the Stem-and-Leaf plot. This is a similar visualization tool that provides an exacting representation of individual data points. In a Stem-and-Leaf plot, the 'leaves' on the end of each 'stem' represent individual data points. If you were to place these 'leaves' side-by-side, they would touch, or even overlap, due to the precise, one-to-one correspondence between the data points and the 'leaves'.

AD

This subtle distinction illustrates why, in histograms, the bars never touch. They represent a count of the data points within certain class intervals, not the data points themselves. Therefore, the space between the bars is not just present, it's also meaningful.

a bar chart with blue bars on it
a bar chart with blue bars on it
What is a Histogram? Its uses, and how it makes our life easier
What is a Histogram? Its uses, and how it makes our life easier
💮 Day 10 of R Programming Practice 💮
💮 Day 10 of R Programming Practice 💮
How to Read and Use Histograms in R
How to Read and Use Histograms in R
A Histogram is NOT a Bar Chart
A Histogram is NOT a Bar Chart
Purpose Of A Histogram - Sciencing
Purpose Of A Histogram - Sciencing

The Role of Space in Histogram Interpretation

The spaces between the bars in a histogram have a significant role in data interpretation. They provide insights into the gaps in the data, representing where data points are less frequent or absent. A wide space between bars can indicate that there are fewer data points in that particular range, or even that no data points exist within that specific interval.

On the other hand, bars touching (or, again, nearly touching) wouldn’t provide any additional information about the distribution of data in your dataset. In fact, histograms with bars touching might even lead to misinterpretation of the data distribution. It could give the impression that all the data points are clumped together in a tight distribution, which may not be the case in reality.

AD

Visual Distortions and Misinterpretations

In addition to misinterpreting the distribution of data based on the space between bars, touching bars could also distort the visualization. For high-frequency counts, bars touching or nearly touching could make the histogram look more like a bell curve, leading to incorrect assumptions about the distribution of data.

a graph that shows the number of years it has been given to an individual person
a graph that shows the number of years it has been given to an individual person

A well-known example is the famous 'counting Jamais Vu' chart. In this visualization, the bars were made to appear that they touched, resulting in a misleading representation of how often we recall memories versus forget them. Therefore, it's crucial to understand the limitations and caveats of these visualization tools in order to effectively interpret data.

In conclusion, the bars in a histogram never touch, a result of the meaningful space between them. The space between bars is as important as the bars themselves, providing crucial information about the distribution of data across certain ranges. However, it's important to understand that histograms are not meant to represent individual data points and their distortions could lead to misinterpretations. Consider the specific context and goals of your data analysis to effectively use this valuable tool in your data exploration journey.

AD
AD