Bar chart

Short description: Type of chart

Example of a grouped (clustered) bar chart, one with horizontal bars.

A bar chart or bar graph is a chart or graph that presents categorical data with rectangular bars with heights or 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 chart.

A bar graph shows comparisons among discrete categories. One axis of the chart shows the specific categories being compared, and the other axis represents a measured value. Some bar graphs present bars clustered in groups of more than one, showing the values of more than one measured variable.

## Contents

* 1 History
* 2 Usage
* 2.1 Grouped (clustered) and stacked
* 2.2 Variable-width (variwide)
* 2.3 Advantages
* 2.4 Limitations
* 3 See also
* 4 References
* 5 External links

## History

Many sources consider William Playfair (1759-1824) to have invented the bar chart and the Exports and Imports of Scotland to and from different parts for one Year from Christmas 1780 to Christmas 1781 graph from his The Commercial and Political Atlas to be the first bar chart in history. Diagrams of the velocity of a constantly accelerating object against time published in The Latitude of Forms (attributed to Jacobus de Sancto Martino or, perhaps, to Nicole Oresme)[1] about 300 years before can be interpreted as "proto bar charts".[2][3]

## Usage

A vertical stacked bar chart with positive values

A vertical stacked bar chart with negative values

A horizontal stacked bar chart

Error creating thumbnail: Unable to save thumbnail to destination

A vertical, grouped (clustered) 3D bar chart

Bar graphs/charts provide a visual presentation of categorical data.[4] 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 (vertical) bar chart, categories appear along the horizontal axis and the height of the bar corresponds to the value of each category.

Bar charts have a discrete domain of categories, and are usually scaled so that all the data can fit on the chart. When there is no natural ordering of the categories being compared, bars on the chart may be arranged in any order. Bar charts arranged from highest to lowest incidence are called Pareto charts.

### Grouped (clustered) and stacked

Bar graphs can also be used for more complex comparisons of data with grouped (or "clustered") bar charts, and stacked bar charts.[4]

In grouped (clustered) bar charts, for each categorical group there are two or more bars 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 revenue.

Alternatively, a stacked bar chart stacks bars on top of each other so that the height of the resulting stack shows the combined result. Stacked bar charts are not suited to data sets having both positive and negative values.

Grouped bar charts usually present the information in the same order in each grouping. Stacked bar charts present the information in the same sequence on each bar.

### Variable-width (variwide)

Example: Variable-width bar chart relating:
* countries' respective populations (along x axis),
* per-person greenhouse gas emissions (along y axis), and
* total emissions for that country (rectangle area = product `x*y` of sides' lengths)

Variable-width bar charts, sometimes abbreviated variwide (bar) charts, are bar charts having bars with non-uniform widths. Generally:

* Bars represent quantities with respective rectangles of areas A that are respective arithmetic products of related pairs of

— vertical-axis quantities (A/X) and
— horizontal-axis quantities (X).

* Arithmetically, the area of each bar (rectangle) is determined a product of sides' lengths:

`(A/X)*X` = Area A for each bar

Roles of the vertical and horizontal axes may be reversed, depending on the desired application.

Examples of variable-width bar charts are shown at Wikimedia Commons.

### Advantages

1. Easy to read and interpret: Bar charts are easy to read and interpret, even for people without a background in statistics or data visualization. The bars make it easy to compare values and see trends, making it a useful tool for communicating information to a wide range of audiences.
2. Can handle large amounts of data: Bar charts can handle large amounts of data and still provide a clear representation of the information. The bars can be made narrow or wide to fit a large number of categories or data points, and the use of color or patterns can make it easier to distinguish between them.
3. Customizable: Bar charts can be customized to suit the needs of the user. For example, the color, width, and height of the bars can be adjusted to make the chart more visually appealing, and labels and annotations can be added to provide additional information.
4. Useful for comparing values: Bar charts are particularly useful for comparing values between categories or data points. They allow for quick identification of differences and similarities, making it easy to draw conclusions and make decisions.[5][6]

### Limitations

1. Limited use for continuous data: Bar charts are not useful for displaying continuous data, such as temperature or time. For continuous data, a line chart or scatter plot may be more appropriate. Bar charts of continuous data with error bars are sometimes referred to as dynamite plots.[7][8]
2. Limited use for small sample sizes: Bar charts may not be useful for displaying small sample sizes, as the bars may not accurately represent the data. In such cases, a histogram or box plot may be more appropriate.
3. May be misleading: Bar charts can be misleading if the scale is not appropriate or if the data is presented in a way that is designed to mislead the viewer. For example, if the y-axis is truncated, the differences between the bars may appear larger than they actually are.
4. Limited scope for multivariate data: Bar charts can only display one or two variables at a time, making them less useful for displaying multivariate data. In such cases, a scatter plot or heat map may be more appropriate.[5][6]

## See also

* Data and information visualization
* Enhanced Metafile Format to use in office suites, as MS PowerPoint
* Histogram, similar appearance - for continuous data
* Misleading graph
* Progress bar
* To include bar charts in Wikipedia, see Extension:EasyTimeline.

## References

1. ↑ Clagett, Marshall (1968), Nicole Oresme and the Medieval Geometry of Qualities and Motions, Madison: Univ. of Wisconsin Press, pp. 85–99, ISBN 0-299-04880-2
2. ↑ Beniger, James R.; Robyn, Dorothy L. (1978), "Quantitative Graphics in Statistics: A Brief History", The American Statistician (Taylor & Francis, Ltd.) 32 (1): 1–11, doi:10.1080/00031305.1978.10479235
3. ↑ Der, Geoff; Everitt, Brian S. (2014). A Handbook of Statistical Graphics Using SAS ODS. Chapman and Hall - CRC. ISBN 978-1-584-88784-3. https://books.google.com/books?id=kB8bBAAAQBAJ.
4. ↑ 4.0 4.1 Kelley, W. M.; Donnelly, R. A. (2009) The Humongous Book of Statistics Problems. New York, NY: Alpha Books ISBN 1592578659
5. ↑ 5.0 5.1 Reid, Nathalie (2018-01-12). "Data Visualization: A Guide to Visual Storytelling for Libraries". Journal of the Medical Library Association 106 (1): 135. doi:10.5195/jmla.2018.346. ISSN 1558-9439. PMC 5764581. http://jmla.pitt.edu/ojs/jmla/article/view/346.
6. ↑ 6.0 6.1 Healy, Kieran Joseph (2019). Data visualization : a practical introduction. Princeton, New Jersey. ISBN 978-0-691-18161-5. OCLC 1032356534. https://www.worldcat.org/oclc/1032356534.
7. ↑ Riedel, Nico; Schulz, Robert; Kazezian, Vartan; Weissgerber, Tracey (2022-03-15) (in en). ﻿Replacing bar graphs of continuous data with more informative graphics: Are we making progress?﻿ (Report). Scientific Communication and Education. doi:10.1101/2022.03.14.484206. http://biorxiv.org/lookup/doi/10.1101/2022.03.14.484206.
8. ↑ Doggett, Thomas J; Way, Connor (2024-01-08). "Dynamite plots in surgical research over 10 years: a meta-study using machine-learning analysis". Postgraduate Medical Journal. doi:10.1093/postmj/qgad134. ISSN 0032-5473. https://doi.org/10.1093/postmj/qgad134.

## External links

* Graphing at Curlie (directory of graphing software and online tools; many can handle bar charts)

* v
* t
* e

Statistics

* Outline
* Index

Descriptive statistics

| Continuous data|

| Center|

* Mean
* arithmetic
* geometric
* harmonic
* Median
* Mode

|

Dispersion|

* Variance
* Standard deviation
* Coefficient of variation
* Percentile
* Range
* Interquartile range

Shape|

* Central limit theorem
* Moments
* Skewness
* Kurtosis
* L-moments

Count data|

* Index of dispersion

Summary tables|

* Grouped data
* Frequency distribution
* Contingency table

Dependence|

* Pearson product-moment correlation
* Rank correlation
* Spearman's rho
* Kendall's tau
* Partial correlation
* Scatter plot

Graphics|

* Bar chart
* Biplot
* Box plot
* Control chart
* Correlogram
* Fan chart
* Forest plot
* Histogram
* Pie chart
* Q–Q plot
* Run chart
* Scatter plot
* Stem-and-leaf display
* Radar chart
* Violin plot

Data collection

| Study design|

* Population
* Statistic
* Effect size
* Statistical power
* Optimal design
* Sample size determination
* Replication
* Missing data

|

Survey methodology|

* Sampling
* stratified
* cluster
* Standard error
* Opinion poll
* Questionnaire

Controlled experiments|

* Scientific control
* Randomized experiment
* Randomized controlled trial
* Random assignment
* Blocking
* Interaction
* Factorial experiment

Adaptive Designs|

* Adaptive clinical trial
* Up-and-Down Designs
* Stochastic approximation

Observational Studies|

* Cross-sectional study
* Cohort study
* Natural experiment
* Quasi-experiment

Statistical inference

| Statistical theory|

* Population
* Statistic
* Probability distribution
* Sampling distribution
* Order statistic
* Empirical distribution
* Density estimation
* Statistical model
* Model specification
* Lp space
* Parameter
* location
* scale
* shape
* Parametric family
* Likelihood (monotone)
* Location–scale family
* Exponential family
* Completeness
* Sufficiency
* Statistical functional
* Bootstrap
* U
* V
* Optimal decision
* loss function
* Efficiency
* Statistical distance
* divergence
* Asymptotics
* Robustness

|

Frequentist inference|

| Point estimation|

* Estimating equations
* Maximum likelihood
* Method of moments
* M-estimator
* Minimum distance
* Unbiased estimators
* Mean-unbiased minimum-variance
* Rao–Blackwellization
* Lehmann–Scheffé theorem
* Median unbiased
* Plug-in

|

Interval estimation|

* Confidence interval
* Pivot
* Likelihood interval
* Prediction interval
* Tolerance interval
* Resampling
* Bootstrap
* Jackknife

Testing hypotheses|

* 1- & 2-tails
* Power
* Uniformly most powerful test
* Permutation test
* Randomization test
* Multiple comparisons

Parametric tests|

* Likelihood-ratio
* Score/Lagrange multiplier
* Wald

Specific tests|

* Z-test (normal)
* Student's t-test
* F-test

Goodness of fit|

* Chi-squared
* G-test
* Kolmogorov–Smirnov
* Anderson–Darling
* Lilliefors
* Jarque–Bera
* Normality (Shapiro–Wilk)
* Likelihood-ratio test
* Model selection
* Cross validation
* AIC
* BIC

Rank statistics|

* Sign
* Sample median
* Signed rank (Wilcoxon)
* Hodges–Lehmann estimator
* Rank sum (Mann–Whitney)
* Nonparametric anova
* 1-way (Kruskal–Wallis)
* 2-way (Friedman)
* Ordered alternative (Jonckheere–Terpstra)

Bayesian inference|

* Bayesian probability
* prior
* posterior
* Credible interval
* Bayes factor
* Bayesian estimator
* Maximum posterior estimator

* Correlation
* Regression analysis

| Correlation|

* Pearson product-moment
* Partial correlation
* Confounding variable
* Coefficient of determination

|

Regression analysis|

* Errors and residuals
* Regression validation
* Mixed effects models
* Simultaneous equations models
* Multivariate adaptive regression splines (MARS)

Linear regression|

* Simple linear regression
* Ordinary least squares
* General linear model
* Bayesian regression

Non-standard predictors|

* Nonlinear regression
* Nonparametric
* Semiparametric
* Isotonic
* Robust
* Heteroscedasticity
* Homoscedasticity

Generalized linear model|

* Exponential families
* Logistic (Bernoulli) / Binomial / Poisson regressions

Partition of variance|

* Analysis of variance (ANOVA, anova)
* Analysis of covariance
* Multivariate ANOVA
* Degrees of freedom

Categorical / Multivariate / Time-series / Survival analysis

| Categorical|

* Cohen's kappa
* Contingency table
* Graphical model
* Log-linear model
* McNemar's test

|

Multivariate|

* Regression
* Manova
* Principal components
* Canonical correlation
* Discriminant analysis
* Cluster analysis
* Classification
* Structural equation model
* Factor analysis
* Multivariate distributions
* Elliptical distributions
* Normal

Time-series|

| General|

* Decomposition
* Trend
* Stationarity
* Seasonal adjustment
* Exponential smoothing
* Cointegration
* Structural break
* Granger causality

|

Specific tests|

* Dickey–Fuller
* Johansen
* Q-statistic (Ljung–Box)
* Durbin–Watson
* Breusch–Godfrey

Time domain|

* Autocorrelation (ACF)
* partial (PACF)
* Cross-correlation (XCF)
* ARMA model
* ARIMA model (Box–Jenkins)
* Autoregressive conditional heteroskedasticity (ARCH)
* Vector autoregression (VAR)

Frequency domain|

* Spectral density estimation
* Fourier analysis
* Wavelet
* Whittle likelihood

Survival|

| Survival function|

* Kaplan–Meier estimator (product limit)
* Proportional hazards models
* Accelerated failure time (AFT) model
* First hitting time

|

Hazard function|

* Nelson–Aalen estimator

Test|

* Log-rank test

Applications

| Biostatistics|

* Bioinformatics
* Clinical trials / studies
* Epidemiology
* Medical statistics

|

Engineering statistics|

* Chemometrics
* Methods engineering
* Probabilistic design
* Process / quality control
* Reliability
* System identification

Social statistics|

* Actuarial science
* Census
* Crime statistics
* Demography
* Econometrics
* Jurimetrics
* National accounts
* Official statistics
* Population statistics
* Psychometrics

Spatial statistics|

* Cartography
* Environmental statistics
* Geographic information system
* Geostatistics
* Kriging

* Category
* '
* Commons
* WikiProject

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Bar chart. Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Bar_chart&oldid=32236"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template