Mathematica > Visualization and Graphics > Charting and Information Visualization >
Mathematica > Visualization and Graphics > Data Visualization > Charting and Information Visualization >

BarChart3D

BarChart3D[{y1, y2, ...}]
makes a 3D bar chart with bar lengths y1, y2, ....
BarChart3D[{..., wi[yi, ...], ..., wj[yj, ...], ...}]
makes a 3D bar chart with bar features defined by the symbolic wrappers wk.
BarChart3D[{data1, data2, ...}]
makes a 3D bar chart from multiple datasets datai.
  • Data elements for BarChart3D can be given in the following forms:
yia pure bar value
wi[yi,...]a bar with value yi and wrapper wi
formi->mia bar form with metadata mi
  • Data not given in these forms is taken to be missing, and typically yields a gap in the 3D bar chart.
  • Datasets for BarChart3D 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
Top,Bottom,Left,Right,Center, Front,Backpositions within bars
Above, Below, Before, Afterpositions outside bars
Axison the bar origin axis
{{bx,by,bz},{lx,ly}}scaled position {lx, ly} in the label at scaled position {bx, by, bz} in the bar
BarOriginBottomorigin of bars
AxesTruewhether to draw axes
BarSpacingAutomaticspacing between bars
BoxedFalsewhether to draw a bounding box
ChartBaseStyleAutomaticoverall style for bars
ChartElementsAutomaticgraphics to use for each of the bars
ChartElementFunctionAutomatichow to generate raw graphics for bars
ChartLabelsNonelabels for data elements and datasets
ChartLayoutAutomaticoverall layout to use
ChartLegendsNonelegends for data elements and datasets
ChartStyleAutomaticstyle for bars
ColorFunctionAutomatichow to color bars
ColorFunctionScalingTruewhether to normalize arguments to ColorFunction
FaceGridsAutomaticgrid lines to draw on the bounding box
LabelingFunctionAutomatichow to label bars
LegendAppearanceAutomaticoverall appearance of legends
Lighting"Neutral"simulated light sources to use
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
ViewPointAutomaticviewing position
  • Possible settings for ChartLayout include "Grouped", "Stacked", "Stepped" and "Percentile".
  • The arguments supplied to ChartElementFunction are the bar region {{xmin, xmax}, {ymin, ymax}, {zmin, zmax}}, the data values yi, and metadata {m1, m2, ...} from each level in a nested list of datasets.
  • A list of built-in settings for ChartElementFunction can be obtained from ChartElementData["BarChart3D"].
  • With the setting ChartElements->g, the graphic g will be used to form pictorial bars consisting of stretched versions of g.
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team