Evotec

Project

PSWriteHTML

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

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-ChartPie

Namespace PSWriteHTML

Creates a new pie chart with customizable options.

Remarks

This function creates a new pie chart with the specified name, value, and color. It allows customization of the pie chart appearance.

Examples

Authored help example

EXAMPLE 1


New-ChartPie -Name "Slice 1" -Value 30 -Color "red"
Creates a new pie chart segment named "Slice 1" with a value of 30 and colored in red.
        

EXAMPLE 2


New-ChartPie -Name "Slice 2" -Value 20 -Color "blue"
Creates a new pie chart segment named "Slice 2" with a value of 20 and colored in blue.
        

Common Parameters

This command supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable.

For more information, see about_CommonParameters.

Syntax

New-ChartPie [-Color <String>] [-Name <String>] [-Value <Object>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Color String optionalposition: 2pipeline: False
Specifies the color of the pie chart segment.
Name String optionalposition: 0pipeline: False
Specifies the name of the pie chart.
Value Object optionalposition: 1pipeline: False
Specifies the value of the pie chart segment.