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 19, 2026
·
16 revisions
Excel: Chart - bar
A dedicated page for the bar chart type. Bar charts display data as
horizontal bars, ideal for ranked comparisons and long category labels.
Bar charts are the horizontal variant of column
and share all column-specific properties (gap width, overlap, invert
if negative, bar shape).
Bar charts share all properties with column charts — the only
difference is the orientation (horizontal vs vertical). See
column for the full type-specific reference.
Gap width
Property
Default
Notes
gapWidth / gap
150
Space between bar groups (0-500, as % of bar width)
# Tight bars (no gap)
officecli add data.xlsx /Sheet1 --type chart \
--prop chartType=bar --prop gapWidth=0 \
--prop data="Sales:10,20,30" --prop categories="A,B,C"# Wide gap
officecli set data.xlsx /Sheet1/chart[1] --prop gapWidth=300
Overlap
Property
Default
Notes
overlap
0 (clustered), 100 (stacked)
Bar overlap (-100 to 100, as % of bar width)
officecli set data.xlsx /Sheet1/chart[1] --prop overlap=50
Invert if negative
Property
Default
Notes
invertIfNeg / invertIfNegative
false
Reverse bar color/direction for negative values
Bar shape (3D only)
Property
Default
Notes
shape / barShape
box
3D bar shape: box, cone, cylinder, pyramid
Title styling
Property
Default
Notes
title
—
Chart title text
title.font / titleFont
—
Font family
title.size / titleSize
—
Font size (pt)
title.color / titleColor
—
Font color (hex)
title.bold / titleBold
—
Bold (true/false)
title.glow / titleGlow
—
Glow: "COLOR-RADIUS-OPACITY" or "none"
title.shadow / titleShadow
—
Shadow: "COLOR-BLUR-ANGLE-DIST-OPACITY" or "none"
Legend
Property
Default
Notes
legend
true
Position: top, bottom, left, right, none
legend.overlay
false
Float legend on top of the chart
legendFont / legend.font
—
"size:color:fontname"
Axis features
Scale control
Property
Default
Notes
axisMin / min
(auto)
Value axis lower bound
axisMax / max
(auto)
Value axis upper bound
majorUnit
(auto)
Major gridline / tick interval
minorUnit
(auto)
Minor gridline / tick interval
axisNumFmt / axisNumberFormat
General
Number format for tick labels (e.g. "$#,##0", "0%")
Bar is horizontal column. All column-specific properties
(gapWidth, overlap, invertIfNeg, shape) work identically
on bar charts. The only difference is axis orientation.
Reference lines are vertical in bar charts (since the value
axis is horizontal), unlike column/line charts where they are
horizontal.
3D bar charts use bar3d type string. The shape property
controls the 3D bar shape.
Inspect an existing bar chart
# List all charts
officecli query data.xlsx chart
# Inspect a specific chart
officecli get data.xlsx "/Sheet1/chart[1]"# Render to HTML preview
officecli view data.xlsx html > preview.html