Skip to content

ppt chart get

zmworm edited this page Apr 9, 2026 · 52 revisions

PowerPoint: Chart - get

Returned attributes when getting a chart node.

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

Returned Attributes

Key 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 (bar, column, line, pie, area, scatter, doughnut, radar)
title string Chart title text
legend string Legend position (b = bottom, t = top, l = left, r = right)
dataLabels string Comma-separated label components (value, category, series, percent)
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%)
seriesCount integer Number of data series
categories string Comma-separated category labels
labelPos string Data label position
style integer Chart style ID (1-48)
plotFill string Plot area fill color (hex)
gridlines string Major gridlines configuration
minorGridlines string Minor gridlines configuration
secondaryAxis string Comma-separated series indices on secondary axis

Example

officecli get slides.pptx /slide[2]/chart[1]
/slide[2]/chart[1] (Chart)
  name: Chart 1
  x: 685800
  y: 1524000
  width: 7772400
  height: 4572000
  chartType: bar
  title: Quarterly Revenue
  legend: b
  dataLabels: value,category
  axisTitle: Revenue ($M)
  catTitle: Quarter
  axisMin: 0
  axisMax: 100
  majorUnit: 20
  axisNumFmt: #,##0
  seriesCount: 3
  categories: Q1,Q2,Q3,Q4

Based on OfficeCLI v1.0.40

Clone this wiki locally