Skip to content
ConsoleMonster
Cmdlet

New-ConsoleBarChart

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.BarChart ConsoleMonster.Widgets.StackedBar

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 Sets

Description

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

Authored help example

EXAMPLE 1

New-ConsoleBarChart -Name 'Name'

Parameters

-Data IDictionary optionalposition: 0
Labels mapped to values.
-Name String optional
The live name (default bars, or stacked with -Stacked).
-Shape BarShape optional
Bar shape: Line (thin stroke) or Block (solid blocks). Default Block.
Possible values: Block, Line
-Stacked SwitchParameter optional
Draw one stacked bar with a legend instead of one bar per label.
-Unit String optional
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.