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
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"