Skip to content

excel chart get

zmworm edited this page Mar 31, 2026 · 23 revisions

Excel: Chart - get

Get embedded chart properties.

Path: /{SheetName}/chart[N]

Attributes

Attribute Type Description
chartType string Chart type (e.g., bar, column, line, pie, area, scatter, combo)
title string Chart title text
legend string Legend position (top, bottom, left, right, none)
dataLabels string Comma-separated label components (value, category, series, percent)
axisTitle string Value (Y) axis title
catTitle string Category (X) axis title
axisMin number Minimum value on the value axis
axisMax number Maximum value on the value axis
majorUnit number Major gridline interval on the value axis
minorUnit number Minor gridline interval on the value axis
axisNumFmt string Number format for the value axis labels
seriesCount number Number of data series in the chart
categories string Comma-separated resolved category values
labelPos string Data label position
style number 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

Examples

# Get chart properties
officecli get data.xlsx /Sheet1/chart[1]
/Sheet1/chart[1]
  chartType: bar
  title: Quarterly Revenue
  legend: bottom
  dataLabels: value,category
  axisTitle: Revenue ($)
  catTitle: Quarter
  axisMin: 0
  axisMax: 100000
  majorUnit: 20000
  seriesCount: 3
  categories: Jan,Feb,Mar,Apr
# Get as JSON
officecli get data.xlsx /Sheet1/chart[1] --json

See Also


Based on OfficeCLI v1.0.28

Clone this wiki locally