Skip to content

ppt chart set

zmworm edited this page Mar 18, 2026 · 52 revisions

PowerPoint: Chart - Set

Modify chart properties including title, legend, data labels, and position.

Path: /slide[N]/chart[M]

Properties

Property Accepted Values Description
title text Chart title
legend top, bottom, left, right, none Legend position
dataLabels comma-separated: value, category, series, percent, all, none, true Show data labels
colors comma-separated hex Series colors
axisTitle / vTitle text Value axis title
catTitle / hTitle text Category axis title
axisMin / min number Value axis minimum
axisMax / max number Value axis maximum
majorUnit number Major axis unit interval
minorUnit number Minor axis unit interval
axisNumFmt / axisNumberFormat format code Value axis number format
categories comma-separated Category labels
data Series1:1,2,3;Series2:4,5,6 Chart data (all series)
series1..seriesN Name:val1,val2 Individual series data
name text Chart element name
x, y EMU or units Position
width, height EMU or units Size

Examples

# Update title and legend
officecli set slides.pptx /slide[1]/chart[1] --prop title="Updated" --prop legend=bottom --prop x=1cm --prop width=22cm

# Show data labels
officecli set slides.pptx /slide[1]/chart[1] --prop dataLabels=true

# Reposition chart
officecli set slides.pptx /slide[1]/chart[1] --prop x=2cm --prop y=3cm --prop width=20cm --prop height=12cm

Based on OfficeCli v1.0.6

Clone this wiki locally