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

Namespace PSWriteHTML

Creates a new donut chart object with specified name, value, and color.

Remarks

This function creates a new donut chart object with the provided name, value, and color. The name is used as the identifier for the donut, the value represents the data to be displayed, and the color determines the color of the donut.

Examples

Authored help example

EXAMPLE 1


New-ChartDonut -Name 'Sales' -Value 1000 -Color 'blue'
        

Creates a new donut chart object named 'Sales' with a value of 1000 and a blue color.

EXAMPLE 2


New-ChartDonut -Name 'Expenses' -Value 750 -Color 'red'
        

Creates a new donut chart object named 'Expenses' with a value of 750 and a red color.

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-ChartDonut [-Color <String>] [-Name <String>] [-Value <Object>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Color String optionalposition: 2pipeline: False
The color of the donut. If not specified, a default color will be used.
Name String optionalposition: 0pipeline: False
The name of the donut chart object.
Value Object optionalposition: 1pipeline: False
The value or data to be displayed in the donut chart.