Cmdlet
New-ConsoleBarChart
Creates a horizontal bar chart, or a stacked bar with -Stacked.
Syntax
New-ConsoleBarChart [[-Data] <IDictionary>] [-Name <String>] [-Shape <Block|Line>] [-Stacked] [-Unit <String>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
Creates a horizontal bar chart, or a stacked bar with -Stacked.
-Data maps labels to numbers. A stacked bar splits one bar into proportional segments with a legend showing values and shares. Update values live with Add-ConsoleValue or Set-ConsoleValue.
Examples
EXAMPLE 1
New-ConsoleBarChart -Name 'Name'Parameters
- -Data IDictionary
- Labels mapped to values.
- -Name String
- The live name (default bars, or stacked with -Stacked).
- -Shape BarShape
- Bar shape: Line (thin stroke) or Block (solid blocks). Default Block.
- Possible values:
Block,Line - -Stacked SwitchParameter
- Draw one stacked bar with a legend instead of one bar per label.
- -Unit String
- A unit appended to values.
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.