This project is read-only.

NAME

Out-Chart

SYNOPSIS

Displays numeric and categorical data in a chart pane.

SYNTAX

Out-chart [-ChartType <String>] [-GroupAxis <String>] [-Include <String[]>] [-Input <PSObject>] [-Name <String>] [<CommonParameters>]

DESCRIPTION

This cmdlet displays a graphical summary of data obtained from a pipeline. The cmdlet can create line, bar, column, pie, point, area, and spline charts.

PARAMETERS

-ChartType <String>
The type of chart to create. Can be "area", "bar", "column", "line", "pie", "point", or "spline".

Required?
Position? named
Default value bar
Accept pipeline input? false
Accept wildcard characters? false


-GroupAxis <String>
The property to use as the category axis. E.g., in a bar chart, this property would contain the name under each bar.
Aliases: X, Label, Group, Category.

Required?
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


-Include <String[]>
The properties to use as the data axes. E.g., in a bar chart, this property would contain the numeric value for each bar.
Aliases: Columns, Property, DataAxis, Y.

Required?
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false


-Input <PSObject>
The data to display in the chart.

Required?
Position? named
Default value
Accept pipeline input? true
Accept wildcard characters? false


-Name <String>
The name of the data pane in which to display the chart.

Required?
Position? named
Default value Data
Accept pipeline input? false
Accept wildcard characters? false


<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer and OutVariable. For more information, type,
"get-help about_commonparameters".

INPUTS

PSObject. The data to chart.

OUTPUTS

None

NOTES




EXAMPLES

EXAMPLE 1

C:\PS&gt;ls | where{!$_.PSIsContainer } | out-chart -charttype pie -groupaxis Name -dataaxis Length

Displays a pie chart of file sizes in the current directory.

EXAMPLE 2

DTE:\Solution\CodeModel\MyProject>$allMethods = ls -recurse | where {  -match 'method' };
DTE:\Solution\CodeModel\MyProject>$methodData = $allMethods | select-object Name,@{'Name'='ParameterCount';'Expression'={[int]@(.Parameters).Count}};
DTE:\Solution\CodeModel\MyProject>$methodData | out-chart -charttype bar -groupaxis Name -dataaxis ParameterCount

Displays a bar chart of the numer of parameters accepted by each method defined in the MyProject project.

RELATED LINKS

Out-Grid
Out-Chart
Out-HTML

Last edited Dec 30, 2011 at 4:39 AM by beefarino, version 1

Comments

No comments yet.