Nepedia
Back to Discover
Advanced Reader
🔢

Bar chart

math Maturity 7-9 Next article →

A bar chart is a visual tool used to present categorical data. This type of data involves grouping information into discrete, qualitative categories. Common examples of categories include months of the year, age groups, shoe sizes, or different types of animals.

Human losses of world war two by country
Human losses of world war two by country

The chart uses rectangular bars to represent these groups. The height or length of each bar is proportional to the specific value it represents. This allows viewers to quickly compare different sets of information at a glance.

To build a bar chart, you must use two perpendicular lines called axes. One axis displays the specific categories being compared. The other axis represents a measured value, such as a count or a percentage.

Human losses of world war two by country
Human losses of world war two by country

In a vertical bar chart, which is often called a column chart, the categories sit on the horizontal axis. The height of the bar then corresponds to the value on the vertical axis. If there is no natural order to the categories, the bars can be arranged in any way. However, if the bars are arranged from the highest value to the lowest, the chart is known as a Pareto chart.

Accuracy in bar charts is very important for clear communication. Most experts suggest starting the scale at zero. If a chart does not start at zero, it can make values that are actually similar look deceptively different. This happens because the relative lengths of the bars no longer match the actual data. There are exceptions to this rule, however. For example, temperatures in Celsius or Fahrenheit use an arbitrary zero. Logarithmic charts also do not use a standard zero because that value would be infinitely far away.

History shows that different people have contributed to these visual tools. Many sources credit William Playfair, who lived from 1759 to 1824, with inventing the bar chart. His work included a graph titled "Exports and Imports of Scotland to and from different parts for one Year from Christmas 1780 to Christmas 1781." This appeared in his book, The Commercial and Political Atlas. Interestingly, some "proto bar charts" appeared much earlier. Diagrams in a book called The Latitude of Forms showed the velocity of accelerating objects. These were published about 300 years before Playfair's work.

More complex data can be shown using grouped or stacked bar charts. In a grouped, or clustered, bar chart, two or more bars are placed side by side for each category. These bars are often color-coded to represent different variables.

Titanic survivor by class bar charts
Titanic survivor by class bar charts

For instance, a business owner could use different colors to compare revenue from two separate stores across different months. Grouped charts usually keep the same order for the bars within every grouping.

Stacked bar charts, also called composite bar charts, work differently. Instead of placing bars side by side, they stack them on top of each other.

Titanic survivor by class bar charts
Titanic survivor by class bar charts

The total height of the stack shows the combined result of all the parts. This is useful for showing how different sub-types contribute to a total amount. For example, a chart could show total numbers with internal colors representing participation levels. However, stacked bar charts are not suitable for data sets that contain both positive and negative values. They also maintain a consistent sequence of data within each bar.

There is also a specialized version called a variable-width or variwide bar chart. In these charts, the bars do not have a uniform width.

20210626 Variwide chart of greenhouse gas emissions per capita by country
20210626 Variwide chart of greenhouse gas emissions per capita by country

Instead, the area of each rectangular bar is the arithmetic product of its sides. This means the area represents a relationship between two different quantities. One example is a chart relating country populations to per-person CO2 emissions. In such a chart, the rectangle area represents the total emissions for that country. This method adds a layer of mathematical depth to the visual comparison.

623 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (3)
File:Human losses of world war two by country.png
Human losses of world war two by country.png
File:Titanic survivor by class bar charts.png
Titanic survivor by class bar charts.png
File:20210626 Variwide chart of greenhouse gas emissions per capita by country.svg
20210626 Variwide chart of greenhouse gas...
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.