-
Notifications
You must be signed in to change notification settings - Fork 518
ppt chart get
zmworm edited this page Apr 29, 2026
·
52 revisions
Returned attributes when getting a chart node.
Path: /slide[N]/chart[M]
| Attribute | Type | Description |
|---|---|---|
name |
string | Chart name |
x |
integer | Horizontal position (EMU) |
y |
integer | Vertical position (EMU) |
width |
integer | Width (EMU) |
height |
integer | Height (EMU) |
chartType |
string | Chart type (line, line3d, column, bar, pie, area, scatter, doughnut, radar, combo, etc.) |
title |
string | Chart title text |
title.size |
string | Title font size (e.g., 14pt) |
title.bold |
bool | Title bold |
title.color |
string | Title font color (hex) |
legend |
string | Legend position (b = bottom, t = top, l = left, r = right) |
seriesCount |
integer | Number of data series |
categories |
string | Comma-separated category labels |
categoriesRef |
string | Category cell range reference |
| Attribute | Type | Description |
|---|---|---|
axisTitle |
string | Value axis title |
catTitle |
string | Category axis title |
axisMin |
number | Value axis minimum |
axisMax |
number | Value axis maximum |
majorUnit |
number | Value axis major unit |
minorUnit |
number | Value axis minor unit |
axisNumFmt |
string | Value axis number format (e.g., #,##0, 0%) |
axisFont |
string | Axis label font: "size:color:fontname"
|
logBase |
number | Logarithmic scale base |
axisOrientation |
string | Axis direction; maxMin = reversed |
valAxisLine.color |
string | Value axis line color |
catAxisLine.color |
string | Category axis line color |
majorTickMark |
string | Major tick style |
minorTickMark |
string | Minor tick style |
tickLabelPos |
string | Tick label position |
| Attribute | Type | Description |
|---|---|---|
gridlines |
bool/string | Major gridlines configuration |
gridlineColor |
string | Major gridline color (hex) |
gridlineWidth |
number | Major gridline width (pt) |
gridlineDash |
string | Major gridline dash style |
minorGridlines |
bool/string | Minor gridlines configuration |
| Attribute | Type | Description |
|---|---|---|
dataLabels |
string | Comma-separated label components (value, category, series, percent) |
labelPos |
string | Data label position |
| Attribute | Type | Description |
|---|---|---|
smooth |
bool | Chart-level smooth curves |
showMarker |
bool | Markers enabled |
dispBlanksAs |
string | How blank cells are handled (gap, zero, span) |
| Attribute | Type | Description |
|---|---|---|
style |
integer | Chart style ID (1-48) |
plotFill |
string | Plot area fill color (hex) |
chartFill |
string | Chart area fill color (hex) |
secondaryAxis |
string | Comma-separated series indices on secondary axis |
view3d |
string | 3D rotation: "rotX,rotY,perspective"
|
Each series is returned as a child node: /slide[N]/chart[M]/series[K]
| Attribute | Type | Description |
|---|---|---|
name |
string | Series name |
values |
string | Comma-separated resolved values |
color |
string | Series color (hex) |
lineWidth |
number | Line width in pt |
lineDash |
string | Line dash style (solid, sysDash, dot, dash, dashDot, lgDash, etc.) |
smooth |
bool | Per-series smooth override |
shadow |
bool | Shadow effect |
marker |
string | Marker shape (circle, diamond, square, triangle, star, x, plus, dash, dot, none) |
markerSize |
number | Marker size |
officecli get slides.pptx /slide[2]/chart[1]/slide[2]/chart[1] (Chart) name=Chart 1 chartType=line title=Quarterly Revenue title.size=14pt legend=b gridlines=true smooth=true showMarker=true seriesCount=3 categories=Q1,Q2,Q3,Q4
/slide[2]/chart[1]/series[1] (series) "East" name=East values=120,180,210,250 color=#4472C4 lineWidth=2 marker=circle markerSize=5
/slide[2]/chart[1]/series[2] (series) "West" name=West values=90,140,160,200 color=#ED7D31 lineWidth=1.5 lineDash=dash marker=diamond markerSize=6
Based on OfficeCLI v1.0.64