You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
zmworm edited this page Apr 22, 2026
·
16 revisions
Excel: Chart - boxWhisker
A dedicated page for the boxWhisker (box plot) chart type. Box-whisker
charts are part of Excel's cx:chart (extended chart, Office 2016+)
family. They display statistical distribution of data showing median,
quartiles, whiskers (min/max), and outliers.
A box-whisker (box plot) chart takes raw numeric data and computes a
five-number summary: minimum, Q1, median, Q3, maximum. The box spans
Q1..Q3, whiskers extend to min/max (or 1.5x IQR with outliers shown as
individual points). A mean marker (x) is shown by default. Box plots are
ideal for comparing distributions across groups and spotting outliers.
These are set at creation and not currently user-configurable:
Element
Default
Description
meanLine
false
Line connecting mean values across boxes
meanMarker
true
X marker at mean value
nonoutliers
false
Show non-outlier data points
outliers
true
Show outlier data points beyond 1.5x IQR
Multi-group series
Each seriesN creates its own cx:series block, so multi-group box plots
render as separate boxes with distinct X-axis labels and per-group colors
(via colors=). The series name is used as the X-axis category label.
Single hex color for the box fill: "4472C4" or with #. Internally stored without #.
colors
(theme)
Comma-separated hex colors (one per series if multiple).
series.shadow / seriesshadow
—
Outer drop shadow on boxes: "COLOR-BLUR-ANGLE-DIST-OPACITY" (e.g. "000000-6-45-3-35") or "none" to remove
Axis titles and tick labels
The cx category axis is the bottom axis (box labels), the cx value axis
is the left axis (numeric scale). cx accepts the same xAxisTitle /
yAxisTitle spelling as regular cChart's catTitle / axisTitle aliases.
Property
Default
Notes
xAxisTitle
—
Category (bottom) axis title
yAxisTitle
—
Value (left) axis title
axisTitle.color
—
Color for both axis titles (cx can't split per-axis)
axisTitle.size
—
Font size for both axis titles, in pt
axisTitle.bold
—
Bold both axis titles (true/false)
axisTitle.font
—
Font family for both axis titles
axisfont / axis.font
—
Compound tick-label styling for both axes: "size:color:fontname", all fields optional. E.g. "10:6B7280:Helvetica Neue"
tickLabels
true
Show tick labels on the axes. Set false for a minimalist look.
Axis scaling (value axis)
All four map to cx:valScaling attributes. Useful when you want
multiple box plots in a dashboard to share a Y scale.
Property
Default
Notes
axismin / min
(auto)
Value-axis lower bound (numeric)
axismax / max
(auto)
Value-axis upper bound (numeric)
majorunit
(auto)
Major gridline interval
minorunit
(auto)
Minor gridline interval
# Lock Y axis to 0..100 with gridlines every 10
officecli add data.xlsx /Sheet1 --type chart \
--prop chartType=boxWhisker \
--prop series1="Scores:45,52,58,61,63,65,67,68,70,72,75,78,82,85,90,95,99" \
--prop axismin=0 --prop axismax=100 --prop majorunit=10
Axis visibility and spine styling
Property
Default
Notes
axis.visible / axisvisible
true
Hide both axes when false. axis.delete is the inverse alias.
cataxis.visible / cataxisvisible
true
Hide only the category (bottom) axis
valaxis.visible / valaxisvisible
true
Hide only the value (left) axis
axisline / axis.line
—
Spine outline shared by both axes: "color", "color:width", "color:width:dash", or "none"
cataxis.line / cataxisline
—
Category-axis-only spine (overrides axisline for cat)
valaxis.line / valaxisline
—
Value-axis-only spine (overrides axisline for val)
Q1/Q3 box, median line, whiskers extend to last non-outlier within ×ばつIQR, outliers as open circles, mean as ×ばつ marker; Y scale auto-padded 5% so edge outliers are not clipped
Known quirks and limitations
quartileMethod default is exclusive. This matches Excel's
default behavior. The inclusive method includes the median in both
Q1 and Q3 calculations, producing slightly different whisker positions.
axisTitle.* styles BOTH axis titles. cx doesn't split X/Y title
styling into separate knob namespaces — set axisTitle.color=... and
both X and Y titles inherit the same run properties. This is an Excel
limitation, not an officecli one.
Built-in visibilities are not user-configurable.meanLine,
meanMarker, nonoutliers, and outliers are set at creation time.
Future versions may expose these as Set properties.
Preview font fallback. The HTML preview does not reproduce custom
axis-label font families — tick labels fall back to the preview's
default sans font.
Inspect an existing boxWhisker
# Count all charts across the workbook
officecli query data.xlsx chart
# Introspect a single chart's bound properties
officecli get data.xlsx "/Sheet1/chart[1]"# Render the sheet to HTML preview
officecli view data.xlsx html > preview.html