|
SOLUTIONS
|
Search for all pages containing BarChart
BUILT-IN MATHEMATICA SYMBOL
- See Also
-
Related Guides
- Charting and Information Visualization
- Data Visualization
- Statistical Visualization
- Summary of New Features in 7.0
- Summary of New Features in Mathematica 9
- New in 7.0: Alphabetical Listing
- New in 7.0: Visualization & Graphics
- New in 8.0: Visualization & Graphics
- New in 9.0: Visualization and Graphics
BarChart
BarChart[{y1, y2, ...}]
makes a bar chart with bar lengths
,
, ... .
BarChart[{..., wi[yi, ...], ..., wj[yj, ...], ...}]
makes a bar chart with bar features defined by the symbolic wrappers
.
BarChart[{data1, data2, ...}]
makes a bar chart from multiple datasets
.
Details and OptionsDetails and Options
- Data elements for BarChart can be given in the following forms:
-
yi a pure bar value wi[yi,...] a bar with value
and wrapper
formi->mi a bar form with metadata 
- Data not given in these forms is taken to be missing, and typically yields a gap in the bar chart.
- Datasets for BarChart can be given in the following forms:
-
{e1,e2,...} list of elements with or without wrappers w[{e1,e2,...},...] wrapper applied to a whole dataset w[{data1,data1,...},...] wrapper applied to all datasets - The following wrappers can be used for chart elements:
-
Annotation[e,label] provide an annotation Button[e,action] define an action to execute when the element is clicked EventHandler[e,...] define a general event handler for the element Hyperlink[e,uri] make the element act as a hyperlink Labeled[e,...] display the element with labeling Legended[e,...] include features of the element in a chart legend Mouseover[e,over] make the element show a mouseover form PopupWindow[e,cont] attach a popup window to the element StatusArea[e,label] display in the status area when the element is moused over Style[e,opts] show the element using the specified styles Tooltip[e,label] attach an arbitrary tooltip to the element - In BarChart, Labeled and Placed allow the following positions:
-
Top,Bottom,Left,Right,Center positions within bars Above, Below, Before, After positions outside bars Axis on the bar origin axis {{bx,by},{lx,ly}} scaled position
in the label at scaled position
in the bar - BarChart has the same options as Graphics with the following additions and changes:
-
AspectRatio 1/GoldenRatio overall ratio of width to height Axes True whether to draw axes BarOrigin Bottom origin placement for bars BarSpacing Automatic fractional spacing between bars ChartBaseStyle Automatic overall style for bars ChartElementFunction Automatic how to generate raw graphics for bars ChartElements Automatic graphics to use in each of the bars ChartLabels None labels for data elements and datasets ChartLayout Automatic overall layout to use ChartLegends None legends for data elements and datasets ChartStyle Automatic style for bars ColorFunction Automatic how to color bars ColorFunctionScaling True whether to normalize arguments to ColorFunction Joined False whether to join bars LabelingFunction Automatic how to label bars LegendAppearance Automatic overall appearance of legends PerformanceGoal $PerformanceGoal aspects of performance to try to optimize ScalingFunctions None how to scale individual coordinates - Possible settings for ChartLayout include
,
,
, and
. - The arguments supplied to ChartElementFunction are the bar region
, the data value
, and metadata
from each level in a nested list of datasets. - A list of built-in settings for ChartElementFunction can be obtained from
. - The argument supplied to ColorFunction is
. - Style and other specifications from options and other constructs in BarChart are effectively applied in the order ChartStyle, ColorFunction, Style and other wrappers, ChartElements, and ChartElementFunction, with later specifications overriding earlier ones.
Related GuidesRelated Guides
- Charting and Information Visualization
- Data Visualization
- Statistical Visualization
- Summary of New Features in 7.0
- Summary of New Features in Mathematica 9
- New in 7.0: Alphabetical Listing
- New in 7.0: Visualization & Graphics
- New in 8.0: Visualization & Graphics
- New in 9.0: Visualization and Graphics
New in 7 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »







