Skip to content

Latest commit

 

History

History
43 lines (34 loc) · 1.06 KB

README.md

File metadata and controls

43 lines (34 loc) · 1.06 KB

PSCharts

What is Out-PieChart?

Out-PieChart is a function to take data from the pipeline and create a pie chart. The function makes use of the .net assembly 'System.Windows.Forms.DataVisualization'.

Examples

3D pie chart

Get-Process | 
    select -First 5 name, pm | 
    Out-PieChart -PieChartTitle "Top 5 Windows processes running" -DisplayToScreen -Pie3D

standard pie chart

Get-Process | 
     select -First 5 name, pm | 
     Out-PieChart -PieChartTitle "Top 5 Windows processes running" -DisplayToScreen

Display pie chart to screen

use switch -DisplayToScreen

Get-Process | 
     select -First 5 name, pm | 
     Out-PieChart -PieChartTitle "Top 5 Windows processes running" -DisplayToScreen

Save pie chart

Get-Process | 
    select -First 5 name, pm | 
    Out-PieChart -PieChartTitle "Top 5 Windows processes running" -saveImage 'C:\tmp\Win_Process.png'

Pie Chart examples

Standard Pie Chart

3D Pie Chart