Skip to content
ConsoleMonster
Cmdlet

New-ConsoleSparkline

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.Sparkline

Creates a sparkline: a compact trend of recent values.

Syntax

New-ConsoleSparkline [-Height <Int32>] [-Label <Object>] [[-Name] <String>] [-Unit <String>] [-Value <Double[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Creates a sparkline: a compact trend of recent values.

One row by default (▁▂▄▆█ on modern fonts, shades on Consolas, an ASCII ramp in ASCII mode); with -Height above 1 it becomes a small area chart. Append values live with Add-ConsoleValue.

Examples

Authored help example

EXAMPLE 1

New-ConsoleSparkline -Name 'Name'

Parameters

-Height Int32 optional
Rows (default 1).
-Label Object optional
A muted label on the left.
-Name String optionalposition: 0
The live name (default sparkline).
-Unit String optional
A unit appended to the latest value.
-Value Double[] optional
Initial values, oldest first.

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.