Skip to content

About

Custom components for PowerShell Universal apps: interactive Apache ECharts charts, a Perspective datagrid and a pivot report builder on pivotkit, fed straight from SQL, REST and PowerShell objects.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

powershell-universal-components

Custom components for PowerShell Universal apps, each one a PowerShell module you install on its own: interactive Apache ECharts charts, a Perspective datagrid, pivot and chart, and a pivot report builder, fed straight from SQL, REST and PowerShell.

CI PowerShell Gallery License: MIT

Documentation: powershell-universal-components.eize.dev: every module, parameter and chart type, with live examples.

Supported and tested versions: Requirements.

Modules

ECharts

ECharts: a service review page with a KPI matrix of sparklines and bar charts

New-UDEChart draws 29 Apache ECharts chart types, from bars and lines to gantt charts, network graphs, and KPI matrices. Clicks filter other elements. Readers zoom, export, and go full screen.

Pivot

Pivot: report builder with field list, zones and a table

New-UDPivotReport is a pivot report builder on pivotkit. Readers drag fields into rows, columns, values and filters and get a table or a chart. They save views and export to Excel.

Perspective

Perspective: datagrid grouped and split by the reader

New-UDPerspective is the Perspective datagrid, pivot table, and WebGL charts in one. Readers group, split, filter, and sort. A WebAssembly engine handles large row counts.

Quick start

Install-PSResource -Name PowerShellUniversal.Component.ECharts

A first app that runs on any PSU server: the ten verbs with the most PowerShell commands.

New-UDApp -Title 'Commands' -Content {
    $rows = Get-Command -CommandType Cmdlet, Function | Where-Object Verb |
        Group-Object Verb | Sort-Object Count -Descending |
        Select-Object -First 10 Name, Count
    New-UDEChart -Data $rows -Type bar -X Name -Y Count
}

With your own data it is the same call. From SQL Server, for example:

$byTeam = Invoke-Sqlcmd -Query 'SELECT Team, Priority, COUNT(*) AS Tickets FROM Tickets GROUP BY Team, Priority'
New-UDEChart -Data $byTeam -Type bar -X Team -Y Tickets -GroupBy Priority -Stacked

examples/quickstart.ps1 splits the bars into cmdlets and functions, and a click on a bar shows a toast:

The quick start app: stacked bars of PowerShell commands per verb, cmdlets and functions

DataTables, Invoke-RestMethod results and PowerShell objects go in as they are. Column names match without regard to case. A column name that matches no column shows the columns the data has.

Your own data from SQL, REST and PowerShell: Getting started.

Development

Build, tests, docs site and releases: Development. Contributors and coding agents: AGENTS.md, CONTRIBUTING.md. Security reports: SECURITY.md.

License

MIT. Bundled libraries keep their own licenses. The build writes their texts into each module's THIRD-PARTY-NOTICES.txt. Icon, header and social preview in assets/ are generated in eizedev/brand and licensed CC BY 4.0.

About

Custom components for PowerShell Universal apps: interactive Apache ECharts charts, a Perspective datagrid and a pivot report builder on pivotkit, fed straight from SQL, REST and PowerShell objects.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

3 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages