Box and whisker charts

Box and whisker charts display the distribution of a set of values along an axis. They are also commonly known as box plots.

Requirements

  • To create a data element, you must have Can Edit access to the individual workbook and be in Edit mode.
  • Many exploratory actions are also supported in Explore mode; see Workbook modes.

Anatomy of a Box and Whisker Chart

Box and whisker charts break data into quartiles. The upper quartile, median, and lower quartile make up what we refer to as box. The entire spread from whisker minimum to whisker maximum, including the box, accounts for the statistically central range of data. This is called the interquartile range (IQR) and is calculated as Q3 - Q1. Data points that fall out of the IQR are called outliers.

Maximum: The data point with the highest value below Q3 + 1.5*IQR

Upper Quartile: Values contained in the upper 25% of data.

Median: The data range's midpoint.

Lower Quartile: Values contained in the lower 25% of data.

Minimum: The data point with the lowest value above Q1 - 1.5*IQR

Outliers: Values that fall above or below the IQR. Outliers are calculated as is > Q3 + 1.5*IQR and is < Q1 - 1.5*IQR

Screen_Shot_2021-10-26_at_5.15.30_PM.png

Plot a Box and Whisker Chart

Visualizations can be created via the PAGE ELEMENTS section of your workbook's editor panel or directly from an existing data element.

Visualized data will not display on the page canvas until all required plot fields are defined.

Add columns to open fields using either the field's + menu or dragging and dropping the column.

Fields

  • X-AXIS (1 column)
    Categorical data is first grouped by the column on the X-AXIS.
  • Y-AXIS (1+ columns)
    Columns added to the visualization’s Y-AXIS are aggregated by default. Aggregation type (e.g. Sum vs Count) is dependent on the original column’s value type.
    In some cases, you will want to uncheck the AGGREGATE VALUES option. Aggregating the value on the Y-AXIS value will give you an option to SPLIT BY.
  • SPLIT BY (1 column - optional)Creates a second grouping under the first grouping (defined on the X-AXIS).

Example: In the screenshot below, the X-AXIS is set to [Store State], grouping the rows of data into states. The column on the Y-AXIS, [Store Sales] defines the numerical range of the plotted data. The column added to SPLIT BY, [Store Name], acts as a grouping below [Store State]. In other words, data is grouped by state and then each state's data is grouped by (aka "split by") individual stores' names. Points on the y-axis represent the aggregate [Store Sales] values listed under the second, "split by", grouping.

Screen_Shot_2021-10-26_at_11.30.15_AM.png

Marks

  • COLOR
  • TOOLTIP (1+ columns)

Display Orientation (Horizontal vs Vertical)

Box and whisker charts can be displayed both vertically and horizontally.

To select your chart’s orientation, select either the display vertical ( viz-box-vertical.svg ) or display horizontal ( viz-box-horizontal.svg ) icon button in the chart’s editor panel view.

Screen_Shot_2021-10-26_at_2.45.15_PM.png

Format Options

To begin editing an visualization’s format options:

Before you start: This action uses the editor panel. If you have not done so already, open the editor panel from either Explore or Edit mode.

  1. In the editor panel, click the paintbrush (Screen_Shot_2022-02-08_at_5.17.56_PM.png) button.
  2. Select a format option to view and edit its settings.

The following format categories are available for box and whisker charts:

  • BACKGROUND
  • TITLE
  • X-AXIS
  • Y-AXIS
  • LEGEND
  • BOX SHAPE
  • DATA LABELS
  • [REFERENCE MARKS
    ](doc:visualization-reference-marks)

Customize Point Display Options

Before you start: This action uses the editor panel. If you have not done so already, open the editor panel from either Explore or Edit mode.

  1. In the editor panel, click the paintbrush ( Screen_Shot_2022-02-03_at_1.34.34_PM.png ) button.
  2. Click BOX SHAPE.
  3. Select BOX SHAPE formatting from the options presented:
    • The Show points checkbox is checked by default. Uncheck to hide all points.
    • If Show points is selected, you can choose:
      • Outliers only – Shows only the points that fall outside the box.
      • All points – Shows all points, regardless of position.
        Screen_Shot_2021-10-26_at_2.48.24_PM.png

Related resources