BoxWhiskerChart
✖
BoxWhiskerChart
makes a box‐and‐whisker chart from multiple groups of datasets {data1,data2,…}.
Details and Options




- BoxWhiskerChart draws a box-and-whisker summary of the distribution of values in each datai.
- The following box-and-whisker specifications bwspec can be given:
-
"Notched" median confidence interval notch "Outliers" outlier markers "Median" median marker "Basic" box-and-whisker only "Mean" mean marker "Diamond" mean confidence interval diamond {{elem1,val11,…},…} box-and-whisker element specification {"name",{elem1,val11,…},…} named bwspec with element modifications - The elements and values include:
-
{"Fences",width,style} width and style of fences {"MeanDiamond",width,style} width and style of mean confidence interval {"MeanMarker",width,style} width and style of mean marker line {"MedianNotch",width,style} width and style of median confidence interval {"MedianMarker",width,style} width and style of median marker line {"Outliers",marker,style} marker symbol and style for outliers {"FarOutliers",marker,style} marker symbol and style for far outliers {"Whiskers",style} style for whiskers - The width is given as a fraction of the width of the box, and the marker can be any expression.
- Data elements for BoxWhiskerChart can be given in the following forms:
-
datai a pure dataset Quantity[datai,unit] data datai with units wi[datai,…] data datai with wrapper wi formi->mi data with metadata mi - Each datai should be a list of real numbers {y1,y2,…}. Elements yj that are not real numbers are taken to be missing and are excluded. If datai is not a list of real numbers, it is taken to be missing data and will typically result in the gap in the box-and-whisker chart.
- Datasets for BoxWhiskerChart can be given in the following forms:
-
{data1,data2,…} list of elements with or without wrappers <k1data1,k2data2,… > association of keys and datasets TimeSeries[…],EventSeries[…],TemporalData[…] time series, event series, and temporal data WeightedData[…],EventData[…] augmented datasets w[{data1,data2,…},…] wrapper applied to a grouped dataset w[{{data1,data1,…},…},…] wrapper applied to all grouped datasets - BoxWhiskerChart[Tabular[…]cspec] extracts and plots values from the tabular object using the column specification cspec.
- The following forms of column specifications cspec are allowed for plotting tabular data:
-
colx plot a box-whisker chart for the values in column colx {colx1,colx2,…} plot box-whisker charts for columns colx1, colx2, … - The following wrappers can be used for the datai:
-
Annotation[e,label] provide an annotation Button[e,action] define an action to execute when the element is clicked Callout[e,label] display the element with a callout 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 BoxWhiskerChart, Labeled and Placed allow the following positions:
-
Top,Bottom,Left,Right,Center positions within the box Above, Below, Before, After positions outside the box and other elements Axis on the bar origin axis "LowerFence","LowerQuartile","MedianMarker","MeanMarker","UpperQuartile","UpperFence" positions given by box-and-whisker elements {{bx,by},{lx,ly}} scaled position {lx,ly} in the label at scaled position {bx,by} for the box-and-whisker elements - BoxWhiskerChart has the same options as Graphics, with the following additions and changes: [List of all options]
-
AspectRatio 1/GoldenRatio overall ratio of height to width BarOrigin Bottom where to place smallest value for box-and-whisker BarSpacing Automatic fractional spacing between box-and-whiskers ChartBaseStyle Automatic overall style for box-and-whiskers ChartElementFunction Automatic how to generate raw graphics for box ChartLabels None labels for data elements and datasets ChartLegends None legends for data elements and datasets ChartStyle Automatic style for box Frame True whether to draw a frame around the chart Joined False whether to join medians LabelingFunction Automatic how to label box-and-whisker elements LabelingSize Automatic maximum size of callouts and labels LegendAppearance Automatic overall appearance of legends Method Automatic what methods to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotTheme $PlotTheme overall theme for the chart ScalingFunctions None how to scale individual coordinates TargetUnits Automatic units to display in the chart - The arguments supplied to ChartElementFunction are the box region {{xmin,xmax},{ymin,ymax}}, the data datai, 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["BoxWhiskerChart"].
- With ScalingFunctions->s, the data coordinate is scaled using s.
- Style and other specifications from options and other constructs in BoxWhiskerChart are effectively applied in the order ChartStyle, Style and other wrappers, and ChartElementFunction, with later specifications overriding earlier ones.
-
AlignmentPoint Center the default point in the graphic to align with AspectRatio 1/GoldenRatio overall ratio of height to width Axes False whether to draw axes AxesLabel None axes labels AxesOrigin Automatic where axes should cross AxesStyle {} style specifications for the axes Background None background color for the plot BarOrigin Bottom where to place smallest value for box-and-whisker BarSpacing Automatic fractional spacing between box-and-whiskers BaselinePosition Automatic how to align with a surrounding text baseline BaseStyle {} base style specifications for the graphic ChartBaseStyle Automatic overall style for box-and-whiskers ChartElementFunction Automatic how to generate raw graphics for box ChartLabels None labels for data elements and datasets ChartLegends None legends for data elements and datasets ChartStyle Automatic style for box ContentSelectable Automatic whether to allow contents to be selected CoordinatesToolOptions Automatic detailed behavior of the coordinates tool Epilog {} primitives rendered after the main plot FormatType TraditionalForm the default format type for text Frame True whether to draw a frame around the chart FrameLabel None frame labels FrameStyle {} style specifications for the frame FrameTicks Automatic frame ticks FrameTicksStyle {} style specifications for frame ticks GridLines None grid lines to draw GridLinesStyle {} style specifications for grid lines ImageMargins 0. the margins to leave around the graphic ImagePadding All what extra padding to allow for labels etc. ImageSize Automatic the absolute size at which to render the graphic Joined False whether to join medians LabelingFunction Automatic how to label box-and-whisker elements LabelingSize Automatic maximum size of callouts and labels LabelStyle {} style specifications for labels LegendAppearance Automatic overall appearance of legends Method Automatic what methods to use PerformanceGoal $PerformanceGoal aspects of performance to try to optimize PlotLabel None an overall label for the plot PlotRange All range of values to include PlotRangeClipping False whether to clip at the plot range PlotRangePadding Automatic how much to pad the range of values PlotRegion Automatic the final display region to be filled PlotTheme $PlotTheme overall theme for the chart PreserveImageOptions Automatic whether to preserve image options when displaying new versions of the same graphic Prolog {} primitives rendered before the main plot RotateLabel True whether to rotate y labels on the frame ScalingFunctions None how to scale individual coordinates TargetUnits Automatic units to display in the chart Ticks Automatic axes ticks TicksStyle {} style specifications for axes ticks

List of all options




Examples
open allclose allBasic Examples (6)Summary of the most common use cases
Generate a box-and-whisker chart for a data vector:

https://wolfram.com/xid/0tqlefhuksgd63-ifqmal

Generate a box-and-whisker chart for a list of data vectors:

https://wolfram.com/xid/0tqlefhuksgd63-1vc17

https://wolfram.com/xid/0tqlefhuksgd63-dej35y

Chart several collections of datasets:

https://wolfram.com/xid/0tqlefhuksgd63-pbr1i8

https://wolfram.com/xid/0tqlefhuksgd63-dffegu

Customize the appearance of the box-and-whisker chart:

https://wolfram.com/xid/0tqlefhuksgd63-c9217l

https://wolfram.com/xid/0tqlefhuksgd63-b68lxw


https://wolfram.com/xid/0tqlefhuksgd63-rw0dvn


https://wolfram.com/xid/0tqlefhuksgd63-6yh97x

https://wolfram.com/xid/0tqlefhuksgd63-183tr4


https://wolfram.com/xid/0tqlefhuksgd63-q0e5nf


https://wolfram.com/xid/0tqlefhuksgd63-8nahvq

https://wolfram.com/xid/0tqlefhuksgd63-f3u4rh

Show notches for the median confidence interval:

https://wolfram.com/xid/0tqlefhuksgd63-9a9qt6

Scope (46)Survey of the scope of standard use cases
Data and Wrappers (17)

https://wolfram.com/xid/0tqlefhuksgd63-bybvjl


https://wolfram.com/xid/0tqlefhuksgd63-3k8i3p

Data vectors in a dataset are grouped together:

https://wolfram.com/xid/0tqlefhuksgd63-yrzqo8

https://wolfram.com/xid/0tqlefhuksgd63-kxy5am

Datasets do not need to have the same number of data vectors:

https://wolfram.com/xid/0tqlefhuksgd63-4xonez

https://wolfram.com/xid/0tqlefhuksgd63-r8sq6x

Nonreal data is taken to be missing and typically yields a gap in the box-and-whisker chart:

https://wolfram.com/xid/0tqlefhuksgd63-8gl8e3

https://wolfram.com/xid/0tqlefhuksgd63-i4xe2c

A nonreal entry in a data vector is omitted:

https://wolfram.com/xid/0tqlefhuksgd63-dfilhc


https://wolfram.com/xid/0tqlefhuksgd63-7bo8p2


https://wolfram.com/xid/0tqlefhuksgd63-c1j6si

The time stamps in TimeSeries, EventSeries, and TemporalData are ignored:

https://wolfram.com/xid/0tqlefhuksgd63-4qo5d

https://wolfram.com/xid/0tqlefhuksgd63-erdnh4

The values in associations are taken as the heights of the bars:

https://wolfram.com/xid/0tqlefhuksgd63-q7xdhb

https://wolfram.com/xid/0tqlefhuksgd63-fapjdf


https://wolfram.com/xid/0tqlefhuksgd63-berasr


https://wolfram.com/xid/0tqlefhuksgd63-laiqvh


https://wolfram.com/xid/0tqlefhuksgd63-i6pc57

https://wolfram.com/xid/0tqlefhuksgd63-3hzlhk

Use WeightedData to add weights to data:

https://wolfram.com/xid/0tqlefhuksgd63-zjpjp3

https://wolfram.com/xid/0tqlefhuksgd63-z7b2xo


https://wolfram.com/xid/0tqlefhuksgd63-8nlbze

Use EventData to add censoring and truncation information:

https://wolfram.com/xid/0tqlefhuksgd63-7xlegq


https://wolfram.com/xid/0tqlefhuksgd63-78g22i

Use wrappers on an individual data vector, datasets, or collections of datasets:

https://wolfram.com/xid/0tqlefhuksgd63-ub0lk2

https://wolfram.com/xid/0tqlefhuksgd63-nafggd

Inner wrappers take precedence over outer wrappers:

https://wolfram.com/xid/0tqlefhuksgd63-vne3ur

https://wolfram.com/xid/0tqlefhuksgd63-rrtlk3

Override the default tooltips:

https://wolfram.com/xid/0tqlefhuksgd63-8whfsq

https://wolfram.com/xid/0tqlefhuksgd63-dw7akx

Use PopupWindow to provide additional drilldown information:

https://wolfram.com/xid/0tqlefhuksgd63-8hx7vt

https://wolfram.com/xid/0tqlefhuksgd63-9oa0q

Use the other charting function in PopupWindow to provide more information:

https://wolfram.com/xid/0tqlefhuksgd63-8493r6

Button can be used to trigger any action:

https://wolfram.com/xid/0tqlefhuksgd63-tqnbz3

https://wolfram.com/xid/0tqlefhuksgd63-j1231b

Tabular Data (1)

https://wolfram.com/xid/0tqlefhuksgd63-cxnvul

Generate a box-whisker chart for flipper lengths:

https://wolfram.com/xid/0tqlefhuksgd63-ljsi47

Create a table with flipper lengths divided into columns by species:.

https://wolfram.com/xid/0tqlefhuksgd63-h84uy5

Compare flipper lengths by species:

https://wolfram.com/xid/0tqlefhuksgd63-8psil3

Use abbreviated names for extended keys when the elements are unique:

https://wolfram.com/xid/0tqlefhuksgd63-h8o4ew

Elements (11)

https://wolfram.com/xid/0tqlefhuksgd63-vhkpfx

https://wolfram.com/xid/0tqlefhuksgd63-xwxagw


https://wolfram.com/xid/0tqlefhuksgd63-zok5f1

https://wolfram.com/xid/0tqlefhuksgd63-gfs8gf


https://wolfram.com/xid/0tqlefhuksgd63-4itmd

https://wolfram.com/xid/0tqlefhuksgd63-oyys82


https://wolfram.com/xid/0tqlefhuksgd63-q62gqc

Use different shapes for outliers:

https://wolfram.com/xid/0tqlefhuksgd63-j5wysm

https://wolfram.com/xid/0tqlefhuksgd63-rbatgc


https://wolfram.com/xid/0tqlefhuksgd63-k80698

Use different shapes for far outliers:

https://wolfram.com/xid/0tqlefhuksgd63-prk6l8

https://wolfram.com/xid/0tqlefhuksgd63-b6qavz


https://wolfram.com/xid/0tqlefhuksgd63-ejdqtn

Vary the width of the median marker:

https://wolfram.com/xid/0tqlefhuksgd63-ghzqm4

https://wolfram.com/xid/0tqlefhuksgd63-i9rmo6


https://wolfram.com/xid/0tqlefhuksgd63-evtkvc

Use a different shape of median marker:

https://wolfram.com/xid/0tqlefhuksgd63-t0wl93

Do not show the median marker:

https://wolfram.com/xid/0tqlefhuksgd63-259il0

Vary the width of the median confidence interval:

https://wolfram.com/xid/0tqlefhuksgd63-9l8b2u

https://wolfram.com/xid/0tqlefhuksgd63-dx6322

Style the median confidence interval:

https://wolfram.com/xid/0tqlefhuksgd63-snn9e9

Vary the width of the mean marker:

https://wolfram.com/xid/0tqlefhuksgd63-6kytkn

https://wolfram.com/xid/0tqlefhuksgd63-2ev1yg


https://wolfram.com/xid/0tqlefhuksgd63-195fc7

Use a different shape of mean marker:

https://wolfram.com/xid/0tqlefhuksgd63-hlvute

Vary the width of the mean confidence interval:

https://wolfram.com/xid/0tqlefhuksgd63-wo4t0z

https://wolfram.com/xid/0tqlefhuksgd63-jlt2z7

Style the mean confidence interval:

https://wolfram.com/xid/0tqlefhuksgd63-ucckva

Combine individual elements with named presets:

https://wolfram.com/xid/0tqlefhuksgd63-1qwxzk

https://wolfram.com/xid/0tqlefhuksgd63-wzwjx3


https://wolfram.com/xid/0tqlefhuksgd63-s478lu


https://wolfram.com/xid/0tqlefhuksgd63-3k9nyf

Combine elements with ChartElementFunction:

https://wolfram.com/xid/0tqlefhuksgd63-npzaa

https://wolfram.com/xid/0tqlefhuksgd63-r8f58w

Styling and Appearance (9)
Use an explicit list of styles for the box-and-whiskers:

https://wolfram.com/xid/0tqlefhuksgd63-115bfw

https://wolfram.com/xid/0tqlefhuksgd63-rdaman

Use any gradient or indexed color schemes from ColorData:

https://wolfram.com/xid/0tqlefhuksgd63-novuio

https://wolfram.com/xid/0tqlefhuksgd63-6f1exn

Use color schemes designed for charting:

https://wolfram.com/xid/0tqlefhuksgd63-c4f5rf


https://wolfram.com/xid/0tqlefhuksgd63-k5otqn

https://wolfram.com/xid/0tqlefhuksgd63-ejdr42

ChartBaseStyle can be used to set an initial style for all chart elements:

https://wolfram.com/xid/0tqlefhuksgd63-8bxpj8

https://wolfram.com/xid/0tqlefhuksgd63-prid3j

Style can be used to override styles:

https://wolfram.com/xid/0tqlefhuksgd63-pkcqzk

https://wolfram.com/xid/0tqlefhuksgd63-o2q0l

Use built-in programmatically generated bars:

https://wolfram.com/xid/0tqlefhuksgd63-wvz8c


https://wolfram.com/xid/0tqlefhuksgd63-zngx8r

https://wolfram.com/xid/0tqlefhuksgd63-de32hh

For detailed settings use Palettes ▶ ChartElementSchemes:

https://wolfram.com/xid/0tqlefhuksgd63-ej3v4q

Use a theme with simple ticks and grid lines:

https://wolfram.com/xid/0tqlefhuksgd63-uagh7e

https://wolfram.com/xid/0tqlefhuksgd63-88884g

Use a theme with detailed ticks and a reference line:

https://wolfram.com/xid/0tqlefhuksgd63-x6conk

Change the origin of box-and-whiskers:

https://wolfram.com/xid/0tqlefhuksgd63-besmig

https://wolfram.com/xid/0tqlefhuksgd63-scdxyo

Adjust the spacing between individuals and groups of box-and-whiskers:

https://wolfram.com/xid/0tqlefhuksgd63-601o1s

https://wolfram.com/xid/0tqlefhuksgd63-f6u67v

Labeling and Legending (8)
Use Labeled to add a label to a box-and-whisker:

https://wolfram.com/xid/0tqlefhuksgd63-rqckx4

https://wolfram.com/xid/0tqlefhuksgd63-c9bnfs

Use symbolic positions for label placement:

https://wolfram.com/xid/0tqlefhuksgd63-5f173k

https://wolfram.com/xid/0tqlefhuksgd63-c1k5da


https://wolfram.com/xid/0tqlefhuksgd63-stt0v7

Provide categorical labels for the columns of data:

https://wolfram.com/xid/0tqlefhuksgd63-oke89i

https://wolfram.com/xid/0tqlefhuksgd63-rxq2tg


https://wolfram.com/xid/0tqlefhuksgd63-o80h7y


https://wolfram.com/xid/0tqlefhuksgd63-v1weh4

Use Placed to control the positioning of labels, using the same positions as for Labeled:

https://wolfram.com/xid/0tqlefhuksgd63-pu8zm4

https://wolfram.com/xid/0tqlefhuksgd63-bl33ea

Provide value labels for box-and-whisker by using LabelingFunction:

https://wolfram.com/xid/0tqlefhuksgd63-std719

https://wolfram.com/xid/0tqlefhuksgd63-ci7n67

Use Placed to control placement and formatting:

https://wolfram.com/xid/0tqlefhuksgd63-gujlfe

https://wolfram.com/xid/0tqlefhuksgd63-4a4bl6

Add categorical legend entries for the columns of data:

https://wolfram.com/xid/0tqlefhuksgd63-d48ans

https://wolfram.com/xid/0tqlefhuksgd63-dnvp16


https://wolfram.com/xid/0tqlefhuksgd63-w6q89z

Use Legended to add additional legend entries:

https://wolfram.com/xid/0tqlefhuksgd63-k2nhtn

https://wolfram.com/xid/0tqlefhuksgd63-ha8f66


https://wolfram.com/xid/0tqlefhuksgd63-rsgkbv

Use Placed to affect the positioning of legends:

https://wolfram.com/xid/0tqlefhuksgd63-hdce4p

https://wolfram.com/xid/0tqlefhuksgd63-gizo69

Options (96)Common values & functionality for each option
AspectRatio (3)
By default, AspectRatio uses a fixed ratio of the height to the width of the plot:

https://wolfram.com/xid/0tqlefhuksgd63-d9ym5t

Make the height the same as the width with AspectRatio1:

https://wolfram.com/xid/0tqlefhuksgd63-de14t1

AspectRatioFull adjusts the height and width to tightly fit inside other constructs:

https://wolfram.com/xid/0tqlefhuksgd63-fuxqed

https://wolfram.com/xid/0tqlefhuksgd63-hg2bgv

Axes (4)
By default, BoxWhiskerChart uses a frame instead of axes:

https://wolfram.com/xid/0tqlefhuksgd63-b126qr


https://wolfram.com/xid/0tqlefhuksgd63-gr9m5v

Use AxesOrigin to specify where the axes intersect:

https://wolfram.com/xid/0tqlefhuksgd63-bovi4t

Turn each axis on individually:

https://wolfram.com/xid/0tqlefhuksgd63-hoqwyg

AxesLabel (4)
AxesOrigin (2)
AxesStyle (4)
Change the style for the axes:

https://wolfram.com/xid/0tqlefhuksgd63-dq7v47

Specify the style of each axis:

https://wolfram.com/xid/0tqlefhuksgd63-fgkviz

Use different styles for the ticks and the axes:

https://wolfram.com/xid/0tqlefhuksgd63-wbsn1

Use different styles for the labels and the axes:

https://wolfram.com/xid/0tqlefhuksgd63-e6ai99

BarOrigin (1)
BarSpacing (4)
BoxWhiskerChart automatically selects the spacing between bars:

https://wolfram.com/xid/0tqlefhuksgd63-bfxatv


https://wolfram.com/xid/0tqlefhuksgd63-lhvp9n


https://wolfram.com/xid/0tqlefhuksgd63-4os3rt


https://wolfram.com/xid/0tqlefhuksgd63-7ye39q

Use explicit spacing between bars:

https://wolfram.com/xid/0tqlefhuksgd63-8d1gcb


https://wolfram.com/xid/0tqlefhuksgd63-gmhepy


https://wolfram.com/xid/0tqlefhuksgd63-gicx2


https://wolfram.com/xid/0tqlefhuksgd63-2sy930

ChartBaseStyle (3)
Use ChartBaseStyle to style box-and-whisker charts:

https://wolfram.com/xid/0tqlefhuksgd63-vjox6

ChartBaseStyle combines with ChartStyle:

https://wolfram.com/xid/0tqlefhuksgd63-hilrob

ChartStyle may override settings for ChartBaseStyle:

https://wolfram.com/xid/0tqlefhuksgd63-nykrk

ChartElementFunction (3)
Get a list of built-in settings for ChartElementFunction:

https://wolfram.com/xid/0tqlefhuksgd63-jtoeu9

For detailed settings, use Palettes ▶ ChartElementSchemes:

https://wolfram.com/xid/0tqlefhuksgd63-fqhyp4

Use named specifications with ChartElementFunction:

https://wolfram.com/xid/0tqlefhuksgd63-2yberc

ChartLabels (9)
By default labels are placed under the frame:

https://wolfram.com/xid/0tqlefhuksgd63-hokf6c

Use Placed to control label placement:

https://wolfram.com/xid/0tqlefhuksgd63-nvtidr

Symbolic positions outside the bar:

https://wolfram.com/xid/0tqlefhuksgd63-ciz1xr


https://wolfram.com/xid/0tqlefhuksgd63-28ygu2

Use positions relative to the box-and-whisker charts:

https://wolfram.com/xid/0tqlefhuksgd63-qmjaro

Use group labels to label groups:

https://wolfram.com/xid/0tqlefhuksgd63-b0bboc

Coordinate-based placement relative to a bar:

https://wolfram.com/xid/0tqlefhuksgd63-c4g5qj

Place all labels at the upper-right corner and vary the coordinates within the label:

https://wolfram.com/xid/0tqlefhuksgd63-irzipi

Use the third argument to Placed to control formatting:

https://wolfram.com/xid/0tqlefhuksgd63-b0zz73


https://wolfram.com/xid/0tqlefhuksgd63-g7pyf5


https://wolfram.com/xid/0tqlefhuksgd63-7bt7ll


https://wolfram.com/xid/0tqlefhuksgd63-fzjwy9

ChartLegends (1)
ChartStyle (5)
Use ChartStyle to style the bars:

https://wolfram.com/xid/0tqlefhuksgd63-t8mnzy


https://wolfram.com/xid/0tqlefhuksgd63-idpyge

Use "Gradient" colors from ColorData:

https://wolfram.com/xid/0tqlefhuksgd63-t5kq4n

Use "Indexed" colors from ColorData:

https://wolfram.com/xid/0tqlefhuksgd63-zjoqm0


https://wolfram.com/xid/0tqlefhuksgd63-cm40br


https://wolfram.com/xid/0tqlefhuksgd63-etkt60


https://wolfram.com/xid/0tqlefhuksgd63-hew423

Element styles override ChartStyle:

https://wolfram.com/xid/0tqlefhuksgd63-7xt46f

Frame (4)
BoxWhiskerChart uses a frame by default:

https://wolfram.com/xid/0tqlefhuksgd63-w6c8zo

Use FrameFalse to turn off the frame:

https://wolfram.com/xid/0tqlefhuksgd63-b4yypx

Draw a frame on the left and right edges:

https://wolfram.com/xid/0tqlefhuksgd63-6volcv

Draw a frame on the left and bottom edges:

https://wolfram.com/xid/0tqlefhuksgd63-ms5fb5

FrameLabel (3)
Place a label along the bottom frame of a chart:

https://wolfram.com/xid/0tqlefhuksgd63-0t4s3u

Frame labels are placed on the bottom and left frame edges by default:

https://wolfram.com/xid/0tqlefhuksgd63-w6lnp7

Place labels on each of the edges in the frame:

https://wolfram.com/xid/0tqlefhuksgd63-68969n

FrameStyle (2)
FrameTicks (6)
Frame ticks are placed automatically by default:

https://wolfram.com/xid/0tqlefhuksgd63-g862dx

Use All to include tick labels on both left and right edges:

https://wolfram.com/xid/0tqlefhuksgd63-6k6pyq

Place tick marks at the specified positions:

https://wolfram.com/xid/0tqlefhuksgd63-de2tj8

Draw frame tick marks at the specified positions with specific labels:

https://wolfram.com/xid/0tqlefhuksgd63-tbhous

Specify the lengths for tick marks as a fraction of the graphics size:

https://wolfram.com/xid/0tqlefhuksgd63-qebyxt

Use different sizes in the positive and negative directions for each tick mark:

https://wolfram.com/xid/0tqlefhuksgd63-1bbj3d

Specify a style for each frame tick:

https://wolfram.com/xid/0tqlefhuksgd63-scl1xd

FrameTicksStyle (3)
By default, frame ticks and frame tick labels use the same styles as the frame:

https://wolfram.com/xid/0tqlefhuksgd63-yjcmvz

Specify an overall style for the ticks, including the labels:

https://wolfram.com/xid/0tqlefhuksgd63-1hke4w

Use a different style for each frame edge:

https://wolfram.com/xid/0tqlefhuksgd63-11rzc

ImageSize (7)
Use named sizes such as Tiny, Small, Medium and Large:

https://wolfram.com/xid/0tqlefhuksgd63-bz7fw

Specify the width of the plot:

https://wolfram.com/xid/0tqlefhuksgd63-o1jkv

Specify the height of the plot:

https://wolfram.com/xid/0tqlefhuksgd63-gmjx0s

Allow the width and height to be up to a certain size:

https://wolfram.com/xid/0tqlefhuksgd63-mahk4y

Specify the width and height for a graphic, padding with space if necessary:

https://wolfram.com/xid/0tqlefhuksgd63-j7y0n7

Setting AspectRatioFull will fill the available space:

https://wolfram.com/xid/0tqlefhuksgd63-e4j66o

Use maximum sizes for the width and height:

https://wolfram.com/xid/0tqlefhuksgd63-gqvzqw

Use ImageSizeFull to fill the available space in an object:

https://wolfram.com/xid/0tqlefhuksgd63-k2cxqn

Specify the image size as a fraction of the available space:

https://wolfram.com/xid/0tqlefhuksgd63-b6m10o

Joined (1)
LabelingFunction (2)
By default, bars have tooltips with a summary table of the data:

https://wolfram.com/xid/0tqlefhuksgd63-n7nbvz

Define a labeling function and place it in a tooltip:

https://wolfram.com/xid/0tqlefhuksgd63-kuiwnd

https://wolfram.com/xid/0tqlefhuksgd63-m2pvx1

LabelingSize (4)
Textual labels are shown at their actual sizes:

https://wolfram.com/xid/0tqlefhuksgd63-t7qmke

Image labels are automatically resized:

https://wolfram.com/xid/0tqlefhuksgd63-vny20w

Specify a maximum size for textual labels:

https://wolfram.com/xid/0tqlefhuksgd63-bz8jld

Specify a maximum size for image labels:

https://wolfram.com/xid/0tqlefhuksgd63-hy9uc7

Show image labels at their natural sizes:

https://wolfram.com/xid/0tqlefhuksgd63-4rxwe0

Method (3)
Use bar widths proportional to the square root of the data sizes:

https://wolfram.com/xid/0tqlefhuksgd63-yod7ag

https://wolfram.com/xid/0tqlefhuksgd63-o5tbvn

Use bar widths proportional to the data sizes:

https://wolfram.com/xid/0tqlefhuksgd63-x15crm

Put bars on fixed positions with varying bar spacing:

https://wolfram.com/xid/0tqlefhuksgd63-yjk21r


https://wolfram.com/xid/0tqlefhuksgd63-z4t6j

BoxWhiskerChart uses Quartiles to calculate quartiles and extremes:

https://wolfram.com/xid/0tqlefhuksgd63-8k4vfw

https://wolfram.com/xid/0tqlefhuksgd63-qqb5tc


https://wolfram.com/xid/0tqlefhuksgd63-j43d2w

Use Quantile instead:

https://wolfram.com/xid/0tqlefhuksgd63-15fp7t


https://wolfram.com/xid/0tqlefhuksgd63-o75e3h

Use Quantile with parameters for mode-based estimates:

https://wolfram.com/xid/0tqlefhuksgd63-umccn0


https://wolfram.com/xid/0tqlefhuksgd63-e9vfzw

Create a box-whisker plot using precomputed statistics:

https://wolfram.com/xid/0tqlefhuksgd63-70pu6f

https://wolfram.com/xid/0tqlefhuksgd63-y6nu6q


https://wolfram.com/xid/0tqlefhuksgd63-wu4yfp

PerformanceGoal (3)
Generate a box-and-whisker chart with interactive highlighting:

https://wolfram.com/xid/0tqlefhuksgd63-e280bs

Emphasize performance by disabling interactive behaviors:

https://wolfram.com/xid/0tqlefhuksgd63-bu9b2g

Typically less memory is required for non-interactive charts:

https://wolfram.com/xid/0tqlefhuksgd63-494tm8

https://wolfram.com/xid/0tqlefhuksgd63-1eytp

PlotTheme (2)
Use a theme with a high contrast color scheme and glassy rectangle boxes:

https://wolfram.com/xid/0tqlefhuksgd63-491bnu

https://wolfram.com/xid/0tqlefhuksgd63-ob9eg2


https://wolfram.com/xid/0tqlefhuksgd63-bku0mz

https://wolfram.com/xid/0tqlefhuksgd63-jasiut

ScalingFunctions (3)
Linear scale is used by default:

https://wolfram.com/xid/0tqlefhuksgd63-z3um00

Use log scale in the coordinate:

https://wolfram.com/xid/0tqlefhuksgd63-oa22pe

When logarithm scale is used, non-positive data is dropped automatically:

https://wolfram.com/xid/0tqlefhuksgd63-sa7c11


https://wolfram.com/xid/0tqlefhuksgd63-ie81kl

Ticks (6)
Ticks are placed automatically for each axis:

https://wolfram.com/xid/0tqlefhuksgd63-lemoc1

Use TicksNone to draw axes without any tick marks:

https://wolfram.com/xid/0tqlefhuksgd63-d2d0hw

Place tick marks at the specified positions:

https://wolfram.com/xid/0tqlefhuksgd63-fws9t1

Draw tick marks at the specified positions with specific labels:

https://wolfram.com/xid/0tqlefhuksgd63-w1sct6

Specify the lengths for ticks as a fraction of graphics size:

https://wolfram.com/xid/0tqlefhuksgd63-qtw4em

Use different sizes in the positive and negative directions for each tick:

https://wolfram.com/xid/0tqlefhuksgd63-ne3fl9

Specify a style for each tick:

https://wolfram.com/xid/0tqlefhuksgd63-klz10l

TicksStyle (4)
By default, the ticks and tick labels use the same styles as the axis:

https://wolfram.com/xid/0tqlefhuksgd63-dcde7u

Specify an overall style for the ticks including tick labels:

https://wolfram.com/xid/0tqlefhuksgd63-f0nboe

Specify ticks style for each of the axes:

https://wolfram.com/xid/0tqlefhuksgd63-5kom1x

Use a different style for the tick labels and tick marks:

https://wolfram.com/xid/0tqlefhuksgd63-lgs1kd

Applications (3)Sample problems that can be solved with this function
Compare the distribution of salaries for several departments at a university:

https://wolfram.com/xid/0tqlefhuksgd63-o1xtv9

https://wolfram.com/xid/0tqlefhuksgd63-wbl850

A -test for equal location of two populations effectively checks for overlap in confidence intervals about their means. BoxWhiskerChart can be used to perform a visual
-test:

https://wolfram.com/xid/0tqlefhuksgd63-io3mda
The mean diamonds do not overlap. The null hypothesis is rejected at the 5% level:

https://wolfram.com/xid/0tqlefhuksgd63-ljgyxh


https://wolfram.com/xid/0tqlefhuksgd63-obifox

The mean diamonds overlap. There is not enough evidence to reject the null hypothesis:

https://wolfram.com/xid/0tqlefhuksgd63-fv1qg1


https://wolfram.com/xid/0tqlefhuksgd63-i7b2iy

Compare different time slices of a random process:

https://wolfram.com/xid/0tqlefhuksgd63-ky77ca

https://wolfram.com/xid/0tqlefhuksgd63-chevpd

Properties & Relations (6)Properties of the function, and connections to other functions
Outliers and far outliers are defined using the quartiles and interquartile range:

https://wolfram.com/xid/0tqlefhuksgd63-edx4n0

https://wolfram.com/xid/0tqlefhuksgd63-ck9u39


https://wolfram.com/xid/0tqlefhuksgd63-g5wt6k


https://wolfram.com/xid/0tqlefhuksgd63-6f7bf5

Use DistributionChart to show distribution of data:

https://wolfram.com/xid/0tqlefhuksgd63-cffggl

https://wolfram.com/xid/0tqlefhuksgd63-icw20b

BoxWhiskerChart is a case of DistributionChart:

https://wolfram.com/xid/0tqlefhuksgd63-czkfel

https://wolfram.com/xid/0tqlefhuksgd63-qut9kj

Use Histogram and SmoothHistogram to visualize a list of data vectors:

https://wolfram.com/xid/0tqlefhuksgd63-fc8q9n

https://wolfram.com/xid/0tqlefhuksgd63-pmtcso

Use QuantilePlot and ProbabilityPlot to compare data to distributions:

https://wolfram.com/xid/0tqlefhuksgd63-zgwim6

https://wolfram.com/xid/0tqlefhuksgd63-zj70t9

Use Histogram3D and SmoothHistogram3D to visualize two-dimensional data vectors:

https://wolfram.com/xid/0tqlefhuksgd63-qeyj0w

https://wolfram.com/xid/0tqlefhuksgd63-e0vv3p

Wolfram Research (2010), BoxWhiskerChart, Wolfram Language function, https://reference.wolfram.com/language/ref/BoxWhiskerChart.html (updated 2025).
Text
Wolfram Research (2010), BoxWhiskerChart, Wolfram Language function, https://reference.wolfram.com/language/ref/BoxWhiskerChart.html (updated 2025).
Wolfram Research (2010), BoxWhiskerChart, Wolfram Language function, https://reference.wolfram.com/language/ref/BoxWhiskerChart.html (updated 2025).
CMS
Wolfram Language. 2010. "BoxWhiskerChart." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/BoxWhiskerChart.html.
Wolfram Language. 2010. "BoxWhiskerChart." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2025. https://reference.wolfram.com/language/ref/BoxWhiskerChart.html.
APA
Wolfram Language. (2010). BoxWhiskerChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BoxWhiskerChart.html
Wolfram Language. (2010). BoxWhiskerChart. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BoxWhiskerChart.html
BibTeX
@misc{reference.wolfram_2025_boxwhiskerchart, author="Wolfram Research", title="{BoxWhiskerChart}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/BoxWhiskerChart.html}", note=[Accessed: 31-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_boxwhiskerchart, organization={Wolfram Research}, title={BoxWhiskerChart}, year={2025}, url={https://reference.wolfram.com/language/ref/BoxWhiskerChart.html}, note=[Accessed: 31-March-2025
]}