-
Notifications
You must be signed in to change notification settings - Fork 28
excel sparkline add
zmworm edited this page Mar 27, 2026
·
2 revisions
Add inline sparkline charts to worksheet cells.
Parent: /{SheetName}
| Property | Default | Description |
|---|---|---|
cell |
(required) | Target cell for the sparkline (e.g., F1) |
range |
(required) | Data range (e.g., A1:E1) |
type |
line |
line, column, stacked
|
color |
Main sparkline color (hex RGB, e.g., 4472C4) |
|
negativecolor |
Color for negative values | |
markers |
false |
Show data point markers |
highpoint |
High point marker color | |
lowpoint |
Low point marker color | |
firstpoint |
First point marker color | |
lastpoint |
Last point marker color | |
negative |
Negative point marker color | |
lineweight |
Line weight (for line type) |
# Add a simple line sparkline
officecli add data.xlsx /Sheet1 --type sparkline --prop cell=F1 --prop range=A1:E1
# Add a column sparkline with color
officecli add data.xlsx /Sheet1 --type sparkline --prop cell=F2 --prop range=A2:E2 --prop type=column --prop color=4472C4
# Add sparkline with markers and highlight colors
officecli add data.xlsx /Sheet1 --type sparkline --prop cell=F3 --prop range=A3:E3 --prop markers=true --prop highpoint=FF0000 --prop lowpoint=0000FF- Sparkline - Overview and set/remove
- Excel Reference - All Excel elements
Based on OfficeCLI v1.0.23