Skip to content

excel sparkline add

zmworm edited this page Mar 27, 2026 · 2 revisions

Excel: Sparkline - add

Add inline sparkline charts to worksheet cells.

Parent: /{SheetName}

Properties

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)

Examples

# 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

See Also


Based on OfficeCLI v1.0.23

Clone this wiki locally