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 14, 2026
·
17 revisions
Excel: Chart - column
A dedicated page for the column chart type. Column charts display data
as vertical bars, ideal for comparing values across categories. Column
charts support gap width, overlap, bar shapes, data labels, reference
lines, dual axes, and all the shared chart styling properties.
Reference lines are horizontal overlays drawn at a constant value.
They appear in the legend and are rendered in the HTML preview with
the correct dash pattern.
# Add shadow to column bars
officecli set data.xlsx /Sheet1/chart[1] \
--prop "series.shadow=000000-4-315-3-40"
Data labels
Property
Default
Notes
dataLabels
false
Toggle data labels
labelPos / labelPosition
—
Position: center, insideEnd, insideBase, outsideEnd, top, bottom, left, right, bestFit
labelFont
—
"size:color:bold"
dataLabel{N}.text
—
Custom text for individual label
dataLabel{N}.x/y/w/h
—
Manual layout of individual label
dataLabel{N}.delete
—
Hide individual label
dataLabels.separator
—
Separator between label parts
dataLabels.numFmt
—
Number format for labels
# Show data labels outside the top of each bar
officecli add data.xlsx /Sheet1 --type chart \
--prop chartType=column \
--prop series1="Sales:120,180,210" --prop categories="Q1,Q2,Q3" \
--prop dataLabels=true --prop labelPos=outsideEnd \
--prop "labelFont=9:333333:true"
Transparency and opacity
Property
Default
Notes
transparency
0
Series transparency (0-100%)
opacity / alpha
100
Series opacity (0-100%)
# Translucent columns for background context
officecli set data.xlsx /Sheet1/chart[1] --prop transparency=40
Conditional coloring
Property
Default
Notes
colorRule / conditionalColor
—
Color data points conditionally
point{N}.color
—
Individual data point color (hex)
# Highlight Q4 bar in green
officecli set data.xlsx /Sheet1/chart[1] --prop point4.color=22C55E
Stacked type is set at creation. You cannot change a column
to columnStacked via set — recreate the chart with the desired type.
3D column charts use isometric projection in preview.column3d is
rendered with a simple isometric projection in the HTML preview. Use
Excel for full 3D QA.
Gap width and overlap interact. Large overlap values with small gap
widths can cause bars to fully merge visually.
Inspect an existing column chart
# List all charts
officecli query data.xlsx chart
# Inspect a specific chart (shows all series, gapWidth, overlap, etc.)
officecli get data.xlsx "/Sheet1/chart[1]"# Render to HTML preview
officecli view data.xlsx html > preview.html