-
Notifications
You must be signed in to change notification settings - Fork 559
word chart add
zmworm edited this page Mar 18, 2026
·
52 revisions
Add an embedded chart with configurable type, data series, categories, and styling.
Parent: /body
| Property | Default | Description |
|---|---|---|
chartType/type
|
column |
column, bar, line, pie, doughnut, area, scatter, combo + modifiers (stacked, percentStacked, 3d) |
title |
- | Title |
data |
- | Series1:1,2,3;Series2:4,5,6 |
series1, series2, ... |
- | Individual series (Name:val1,val2) |
categories |
- | Comma-separated labels |
colors |
auto | Comma-separated hex colors |
width, height
|
- | Size (EMU) |
legend |
- |
true/false, top, bottom, left, right, none
|
dataLabels |
- | Show labels |
axisTitle, catTitle
|
- | Axis titles |
axisMin, axisMax, majorUnit
|
- | Axis scale |
axisNumFmt |
- | Number format |
comboSplit |
- | Bar series count for combo |
officecli add report.docx /body --type chart --prop chartType=bar --prop title="Revenue" --prop categories="Q1,Q2,Q3,Q4" --prop series1="2024:100,200,150,300" --prop series2="2023:80,180,140,250"Based on OfficeCli v1.0.6