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 29, 2026
·
17 revisions
Excel: Chart - pie
A dedicated page for the pie chart type. Pie charts display
proportional data as slices of a circle. They support one series with
per-slice coloring, explosion, rotation, data labels, and the full
set of shared chart styling properties (title, legend, fills, borders,
layout, shadow, transparency).
# Explode all slices
officecli set data.xlsx /Sheet1/chart[1] --prop explosion=25
# Explode just the first slice
officecli set data.xlsx /Sheet1/chart[1] --prop series1.point1.explode=30
First slice angle
Property
Default
Notes
firstSliceAngle / sliceAngle
0
Rotation of first slice in degrees (0-360)
officecli set data.xlsx /Sheet1/chart[1] --prop firstSliceAngle=90
Per-slice colors
Pie charts use per-data-point colors (not per-series). The colors
property sets the palette; individual points can be overridden.
Plot area background: hex, gradient "C1-C2[:angle]", or "none"
chartFill / chartAreaFill
—
Chart area background
plotArea.border / plotBorder
—
Plot area outline: "color:width:dash" or "none"
chartArea.border / chartBorder
—
Chart area outline
chartArea.border=D0D0D0:1:solid"
Series shadow and outline
Property
Default
Notes
series.shadow / seriesShadow
—
"COLOR-BLUR-ANGLE-DIST-OPACITY" or "none"
series.outline / seriesOutline
—
"COLOR-WIDTH" e.g. "FFFFFF-0.5" or "none"
# White outline between slices + drop shadow
officecli set data.xlsx /Sheet1/chart[1] \
--prop "series.outline=FFFFFF-1" \
--prop "series.shadow=000000-4-315-3-40"
Single series only. Pie charts take one series; multiple series
are not supported.
varyColors is always true. Automatically set so each slice
gets its own color from the palette.
No axes or gridlines. Pie charts do not have category or value
axes. Properties like axisMin, gridlines, referenceLine, and
marker are not applicable.
3D pie falls back to simplified rendering in preview.pie3d
is rendered with ellipse distortion but without full 3D lighting.
Use Excel for 3D QA.
Inspect an existing pie chart
# List all charts
officecli query charts-pie.xlsx chart
# Inspect a specific chart
officecli get charts-pie.xlsx "/Sheet1/chart[1]"# Render to HTML preview
officecli view charts-pie.xlsx html > preview.html