Skip to content

KennethYCK/PowerShellChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This module is base on .net System.Windows.Forms.DataVisualization.Charting.Chart to draw the Chart. The module just help for those who not familiar with .net but want to use powershell to do chart

Example Usage

Pie Chart for CPU Usage

import-module PowershellChart
$Chart = new-Chart
$Process =Get-Process | Sort-Object CPU -Descending | Select-Object -First 20

$Chart | Set-ChartSeries -X_Values $Process.name -Y_Values $Process.CPU
Set-Chart $Chart -charttype Pie
Save-ChartImage -Chart $Chart -FileName "Exmaple.png"

Line Chart For Disk Usage Trend

$Chart = new-Chart
$disk = Import-Csv disk.csv
Set-ChartSeries -X_Values $disk.date -Y_Values $disk.disk -Chart $Chart
Save-ChartImage -Chart $Chart -FileName "Exmaple.png"

To Do

About

Use Powershell to draw chart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors