Skip to content

carrvo/PowerChart

Repository files navigation

PowerChart

This module is for Charting in PowerShell! Quickly see your data in a bar chart, line chart, or scatter chart!

Quick Start

See more examples in the tests.

Installation

This can be installed from the PowerShell Gallery

Install-Module -Name PowerChart

Usage

  1. PowerShell 5.1 has an issue with TypeData so you will need to import separately
    Import-Module -Name PowerChart
    $typedata = Get-Module -Name PowerChart | Select-Object -ExpandProperty FileList
    Update-TypeData -AppendPath $typedata
  2. Create a chart
    $chart = New-Chart
  3. Add some data to a series
    Get-Process | Add-Scatter -Chart $chart -XProperty Id -YProperty CPU -Color Red -ErrorAction SilentlyContinue
  4. Display the chart
    Show-Chart -Chart $chart
    PowerChart Example
  5. Optionally wait for the chart to be closed by the user
    $chart.Dialog.Join()

Known Issues

  1. I have experienced issues with PowerShell 5.1 importing TypeData during the import of the module. The workaround is to import the TypeData manually (see Quick Start).
  2. This module currently only works with Int32 and Double properties. The latter is casted into Int32.
  3. Unfortunately net-standard cannot be used as good practice dictates because the System.Windows.Forms in net6.0-windows is actually a fork of net481; and not included nor compatible in net-standard. Instead both versions are shipped in the same package and chosen according to the runtime environment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published