Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars1015
Forks112
Open issues54
PowerShell Gallery downloads7576901
Releasev1.41.0
Language: PowerShell Updated: 2026-08-10T20:00:10.0000000+00:00

Curated Examples

Example Diagramwithcharts

Source-owned example maintained with PSWriteHTML.

Import-Module .\PSWriteHTML.psd1 -Force

New-HTML -TitleText 'My diagram' -Online -FilePath $PSScriptRoot\Example-DiagramWithCharts.html {
    New-HTMLSection {
        New-HTMLDiagram {
            New-DiagramNode -Label 'One node' -To 'Second node', 'Third node' -ColorBackground Bisque
            New-DiagramNode -Label 'Second node'
            New-DiagramNode -Label 'Third node' -IconBrands amazon -IconColor Brown
            New-DiagramNode -Label 'Bart Simson' -Image 'https://cdn.imgbin.com/5/2/1/imgbin-bart-simpson-homer-simpson-supreme-drawing-bart-simpson-bard-simpsons-jAfrtPtYNPTK5rQrcKULn5XBn.jpg' -To 'Second node'
        } #-DisableLoadingBar
    }
    New-HTMLSection {
        New-HTMLChart {
            New-ChartToolbar -Download
            #New-ChartBarOptions -Gradient
            New-ChartLegend -Name 'Time', 'Money', 'Taxes'
            New-ChartBar -Name 'Test' -Value 1, 2, 3
            New-ChartBar -Name 'Test1' -Value 2, 5, 7
            New-ChartBar -Name 'Test2' -Value 3, 1, 2
        }
    }
} -ShowHTML