-
Notifications
You must be signed in to change notification settings - Fork 542
excel chart get
zmworm edited this page Mar 18, 2026
·
52 revisions
Get embedded chart properties.
Path: /{SheetName}/chart[N]
| 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 |
# 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- Chart - Overview of chart operations
- Chart add - Add a chart
- Chart set - Modify chart properties
- get - Excel - All Excel get paths
Based on OfficeCli v1.0.6