# New-ChartDonut

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

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**Module**

`PSWriteHTML`

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

## Syntax

```
New-ChartDonut
[[-Color] <String>]
[[-Name] <String>]
[[-Value] <Object>]
[<CommonParameters>]
```

[#](#method-new-chartdonut-string-string-object)

Parameter set: `All Parameter Sets`

## Description

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

### Example 1

```powershell
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

```powershell
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.

## Parameters

**-Color String optionalposition: 2**

The color of the donut. If not specified, a default color will be used.

**-Name String optionalposition: 0**

The name of the donut chart object.

**-Value Object optionalposition: 1**

The value or data to be displayed in the donut chart.

## 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:EDC65548CE62332A43B121B030E8D4461BB1CBDA30A780B0AFA76080D7869073 -->
