-
Notifications
You must be signed in to change notification settings - Fork 544
ppt chart add
zmworm edited this page Mar 18, 2026
·
54 revisions
Add charts to a slide with data, series, and styling.
Path: /slide[N] (parent)
| Property | Default | Description |
|---|---|---|
chartType |
column |
Chart type (see types below) |
title |
- | Chart title |
data |
- | Inline data (Series1:1,2,3;Series2:4,5,6) |
series1, series2, ... |
- | Named series (Name:val1,val2,val3) |
categories |
- | Comma-separated category labels |
colors |
auto | Comma-separated hex colors |
comboSplit |
- | Bar series count for combo charts |
x, y
|
defaults | Position (EMU or units) |
width, height
|
defaults | Size (EMU or units) |
name |
auto | Chart name |
legend |
- |
true/false, top, bottom, left, right, none
|
dataLabels |
- | Show data labels |
axisTitle |
- | Value axis title |
catTitle |
- | Category axis title |
axisMin, axisMax
|
- | Axis scale limits |
majorUnit |
- | Axis major unit |
minorUnit |
- | Axis minor unit |
axisNumFmt |
- | Axis number format |
| Base Type | Variants |
|---|---|
column |
columnStacked, columnPercentStacked, column3d
|
bar |
barStacked, barPercentStacked, bar3d
|
line |
lineStacked, linePercentStacked, line3d
|
pie |
pie3d |
doughnut |
|
area |
areaStacked, areaPercentStacked, area3d
|
scatter |
|
combo |
Mixed chart types via comboSplit
|
# Bar chart with two series
officecli add slides.pptx /slide[1] --type chart --prop chartType=bar --prop title="Revenue by Quarter" --prop categories="Q1,Q2,Q3,Q4" --prop series1="2024:100,200,150,300" --prop series2="2023:80,180,140,250" --prop x=2cm --prop y=4cm --prop width=20cm --prop height=12cm
# Pie chart
officecli add slides.pptx /slide[2] --type chart --prop chartType=pie --prop title="Market Share" --prop categories="Product A,Product B,Product C" --prop data="Share:40,35,25" --prop colors=4472C4,ED7D31,A5A5A5
# Line chart with axis titles
officecli add slides.pptx /slide[1] --type chart --prop chartType=line --prop title="Trend" --prop categories="Jan,Feb,Mar,Apr" --prop series1="Sales:10,20,15,30" --prop axisTitle="USD" --prop catTitle="Month" --prop legend=bottomBased on OfficeCli v1.0.6