BarChart[{y1,y2,…}]
generates a bar chart of the values y1,y2,….
BarChart[{list1,list2,…}]
generates a bar chart of the data in the lists.
BarChart
BarChart[{y1,y2,…}]
generates a bar chart of the values y1,y2,….
BarChart[{list1,list2,…}]
generates a bar chart of the data in the lists.
Details and Options
- To use BarChart, you first need to load the Bar Charts Package using Needs["BarCharts`"].
- BarChart has the same options as Graphics with the following additions:
-
BarOrientation Vertical determines horizontal or vertical orientation
- Each listi is a list of numbers or numeric values. For example: {1,7,-4,2,3}.
- The listi need not have the same length.
Examples
Basic Examples (1)
Needs["BarCharts`"]Chart a list of values:
BarChart[{1, 2, -1.3, 2.5}]Chart several sets of values:
BarChart[RandomReal[1, {5, 3}]]The sets need not have the same length:
BarChart[{{1, 2.1, 0.5, 0.9, 1.7}, {1, 2, 2, 1}}]Related Guides
Text
Wolfram Research (2008), BarChart, Wolfram Language function, https://reference.wolfram.com/language/BarCharts/ref/BarChart.html.
CMS
Wolfram Language. 2008. "BarChart." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/BarCharts/ref/BarChart.html.
APA
Wolfram Language. (2008). BarChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/BarCharts/ref/BarChart.html
BibTeX
@misc{reference.wolfram_2026_barchart, author="Wolfram Research", title="{BarChart}", year="2008", howpublished="\url{https://reference.wolfram.com/language/BarCharts/ref/BarChart.html}", note=[Accessed: 13-August-2026]}
BibLaTeX
@online{reference.wolfram_2026_barchart, organization={Wolfram Research}, title={BarChart}, year={2008}, url={https://reference.wolfram.com/language/BarCharts/ref/BarChart.html}, note=[Accessed: 13-August-2026]}