Skip to content
ConsoleMonster
Cmdlet

New-ConsoleHistogram

Module ConsoleMonster
Inputs
None
Outputs
ConsoleMonster.Widgets.Histogram

Creates a histogram of values counted into buckets.

Syntax

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

Description

Creates a histogram of values counted into buckets.

-Edge defines ascending bucket edges. Bars grow with eighth-block precision on modern fonts. Add values live with Add-ConsoleValue.

Examples

Authored help example

EXAMPLE 1

New-ConsoleHistogram -Edge @(1)

Parameters

-Edge Double[] required
Ascending bucket edges (at least two).
-Height Int32 optional
Rows for the bars (default 6).
-Name String optional
The live name (default histogram).
-Unit String optional
A unit for bucket labels.
-Value Double[] optional
Values to count.

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.