Cmdlet
New-ConsoleSparkline
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 SetsDescription
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
EXAMPLE 1
New-ConsoleSparkline -Name 'Name'Parameters
- -Height Int32
- Rows (default 1).
- -Label Object
- A muted label on the left.
- -Name String
- The live name (default sparkline).
- -Unit String
- A unit appended to the latest value.
- -Value Double[]
- 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.