# Set-OfficeExcelChartDataLabels

Configures data labels and optional styling for an Excel chart.

Project

PSWriteOffice

PowerShell document automation across OfficeIMO's document, spreadsheet, presentation, PDF, Project, Access, EPUB, invoicing, and conversion engines.

[View on GitHub](https://github.com/EvotecIT/OfficeIMO/tree/master/PowerShell/PSWriteOffice) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteOffice/releases/tag/v3.0.5) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteOffice/0.2.0)

Stars **727**

Forks **84**

Open issues **7**

Total downloads **5,275,783**

Release **OfficeIMO-v3.6.2**

Language: C# Updated: 2026-11-24

Cmdlet 

**Module**

`PSWriteOffice`

**Inputs**

`OfficeIMO.Excel.ExcelChart`

**Outputs**

`OfficeIMO.Excel.ExcelChart`

**Source**

[SetOfficeExcelChartDataLabelsCommand.cs:18](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/SetOfficeExcelChartDataLabelsCommand.cs#L18) 

Configures data labels and optional styling for an Excel chart.

## Syntax

```
Set-OfficeExcelChartDataLabels
[-Bold <Boolean>]
-Chart <ExcelChart>
[-Color <String>]
[-FillColor <String>]
[-FontName <String>]
[-FontSizePoints <Double>]
[-Italic <Boolean>]
[-LineColor <String>]
[-LineWidthPoints <Double>]
[-NoFill]
[-NoLine]
[-NumberFormat <String>]
[-PassThru]
[-Position <OfficeChartDataLabelPosition>]
[-ShowCategoryName <Boolean>]
[-ShowLegendKey <Boolean>]
[-ShowPercent <Boolean>]
[-ShowSeriesName <Boolean>]
[-ShowValue <Boolean>]
[-SourceLinked <Boolean>]
[<CommonParameters>]
```

[#](#member-af33a6e5b21c7d389496ea59)

Parameter set: `All Parameter Sets`

## Examples

### Add outside-end value labels.

```powershell
$chart | Set-OfficeExcelChartDataLabels -ShowValue $true -Position OutsideEnd
```

Adds value labels to the chart and returns the chart for further formatting.

## Parameters

**-Bold Boolean optional**

Optional bold setting for label text.

**-Chart ExcelChart requiredpipeline: True (ByValue)**

Chart to update.

**-Color String optional**

Optional label text color. Named colors and hexadecimal values are accepted.

**-FillColor String optional**

Optional label fill color. Named colors and hexadecimal values are accepted.

**-FontName String optional**

Optional label font name.

**-FontSizePoints Double optional**

Optional label font size in points.

**-Italic Boolean optional**

Optional italic setting for label text.

**-LineColor String optional**

Optional label line color. Named colors and hexadecimal values are accepted.

**-LineWidthPoints Double optional**

Optional label border width in points.

**-NoFill SwitchParameter optional**

Remove label fill.

**-NoLine SwitchParameter optional**

Remove label border.

**-NumberFormat String optional**

Optional number format code.

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-Position OfficeChartDataLabelPosition optional**

Optional data label position.

Possible values: `BestFit`, `Bottom`, `Center`, `InsideBase`, `InsideEnd`, `Left`, `OutsideEnd`, `Right`, `Top`

**-ShowCategoryName Boolean optional**

Show category names in labels.

**-ShowLegendKey Boolean optional**

Show legend keys in labels.

**-ShowPercent Boolean optional**

Show percentages in labels.

**-ShowSeriesName Boolean optional**

Show series names in labels.

**-ShowValue Boolean optional**

Show values in labels.

**-SourceLinked Boolean optional**

Keep number formatting linked to the source cells.

## 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:3A3F2FAC16ED1BB4108B6B7BA3A3E028AD6E96F4F24BE4F5D3A10A6FFEC86EE2 -->
