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

RectangleChart

RectangleChart[{{x1, y1}, {x2, y2}, ...}]
makes a rectangle chart with bars of width xi and height yi.
RectangleChart[{..., wi[{xi, yi}, ...], ..., wj[{xi, yj}, ...], ...}]
makes a rectangle chart with bar features defined by the symbolic wrappers wk.
RectangleChart[{data1, data2, ...}]
makes a rectangle chart from multiple datasets datai.
{xi,yi}pure bar width and height
wi[{xi,yi},...]a bar with size {xi, yi} and wrapper wi
formi->mia bar form with metadata mi
  • Data not given in these forms is ignored in forming the rectangle chart.
{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,Centerpositions within bars
Above,Below, Before, Afterpositions outside bars
Axison the bar origin axis
{{bx,by},{lx,ly}}scaled position {lx, ly} in the label at scaled position {bx, by} in the bar
AspectRatio1/GoldenRatiooverall ratio of width to height
AxesTruewhether to draw axes
BarOriginBottomorigin of bars
BarSpacingAutomaticspacing between bars
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
LabelingFunctionAutomatichow to label bars
LegendAppearanceAutomaticoverall appearance of legends
PerformanceGoal$PerformanceGoalaspects of performance to try to optimize
  • Possible settings for ChartLayout include "Grouped" and "Stepped".
  • The arguments supplied to ChartElementFunction are the bar region {{xmin, xmax}, {ymin, ymax}}, the data value {xi, 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["RectangleChart"].
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team