# Bar chart

A bar chart or bar graph is a chart that presents Grouped data with rectangular bars with lengths proportional to the values that they represent. The bars can be plotted vertically or horizontally. A vertical bar chart is sometimes called a column bar chart.

A bar graph is a chart that uses either horizontal or vertical bars to show comparisons among categories. One axis of the chart shows the specific categories being compared, and the other axis represents a discrete value. Some bar graphs present bars clustered in groups of more than one (grouped bar graphs), and others show the bars divided into subparts to show cumulative effect (stacked bar graphs).

## History

File:Playfair Barchart.gif
Bar chart by William Playfair, 1786

The first bar graph appeared in the 1786 book The Commercial and Political Atlas, by William Playfair (1759-1823). Playfair was a pioneer in the use of graphical displays and wrote extensively about them.[citation needed]

This bar chart by William Playfair from 1786 showed the "Exports and Imports of Scotland to and from different parts for one Year from Christmas 1780 to Christmas 1781."

## Usage

Bar charts have a discrete range. Bar charts are usually scaled so that all the data can fit on the chart. Bars on the chart may be arranged in any order. Bar charts arranged from highest to lowest incidence are called Pareto charts. Normally, bars showing frequency will be arranged in chronological (time) sequence. Grouped bar graph usually present the information in the same order in each grouping. Stacked bar graphs present the information in the same sequence on each bar.

Bar graphs charts provide a visual presentation of categorical data.[1] Categorical data is a grouping of data into discrete groups, such as months of the year, age group, shoe sizes, and animals. These categories are usually qualitative. In a column bar chart, the categories appear along the horizontal axis; the height of the bar corresponds to the value of each category.

Bar graphs can also be used for more complex comparisons of data with grouped bar charts and stacked bar charts.[1] In a grouped bar chart, for each categorical group there are two or more bars. These bars are color-coded to represent a particular grouping. For example, a business owner with two stores might make a grouped bar chart with different colored bars to represent each store: the horizontal axis would show the months of the year and the vertical axis would show the revenue. Alternatively, a stacked bar chart could be used. The stacked bar chart stacks bars that represent different groups on top of each other. The height of the resulting bar shows the combined result of the groups. However, stacked bar charts are not suited to datasets where some groups have negative values. In such cases, grouped bar charts are preferable.

A bar graph is very useful for recording discrete data, this is, categories. Bar graphs also look a lot like a histogram, which record continuous data, agricultural production , industrial production , population of various reigions . Where the bins represent ranges of data rather than categories. The difference is not that bar graphs (can) have spaces between columns and histograms don't (have to) the difference is the type of data that each represent.For more on the difference, please see this description from shodor.org