# Histogram vs Bar Graph

Histograms and bar graphs visually represent statistical data in graphical form. However, there are many differences in the type of data they display, how they look, and their practical applications.

Histogram

A histogram is a graphical representation of a simple, continuous data set, giving a comparative analysis of the data based on its frequency.

Bar Graph

A bar graph, bar chart, or column chart compares quantitative data between different categories. The categories are represented along the x-axis, and their values along the y-axis. There is always a separation between the bars showing each category. Using the data, we can perform numerical analyses such as averages, sums, and differences. Learn more about it in our article on Bar graph.

The main differences between a bar chart and a histogram are described below.

## Example

Let us consider an example to understand the concept better.

In the above diagram, the left panel shows the histogram, and the right panel shows the bar graph. Note that the y-axis shows the number of variables or data in both cases, while the x-axis can be anything. The only difference being the data in the histogram is continuous (non-discrete), while in the bar graph, it is discrete.

Thus, choosing between a histogram and a bar graph depends on our goal. If we want to look at the frequency of certain values in a single dataset, we will use a histogram. In contrast, we will use a bar graph if we require comparing categories.