# New-ChartPie

Creates a new pie chart with customizable options. Review available syntax, parameters, pipeline guidance, and reference details in PSWriteHTML API Reference.

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 pie chart with customizable options.

## Syntax

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

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

Parameter set: `All Parameter Sets`

## Description

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

## Examples

### Example 1

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

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

## Parameters

**-Color String optionalposition: 2**

Specifies the color of the pie chart segment.

**-Name String optionalposition: 0**

Specifies the name of the pie chart.

**-Value Object optionalposition: 1**

Specifies the value of the pie chart segment.

## 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:759328175ABF4F3260FFB7568595C6235CC72965F3E1543C77278192B6E63A18 -->
