# Set-OfficeExcelChartSeries

Configures Excel chart series colors, line style, and markers.

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 

Aliases: ExcelChartSeries

**Module**

`PSWriteOffice`

**Aliases**

`ExcelChartSeries`

**Inputs**

`OfficeIMO.Excel.ExcelChart`

**Outputs**

`OfficeIMO.Excel.ExcelChart`

**Source**

[SetOfficeExcelChartSeriesCommand.cs:20](https://github.com/EvotecIT/PSWriteOffice/blob/main/Sources/PSWriteOffice/Cmdlets/Excel/SetOfficeExcelChartSeriesCommand.cs#L20) 

Configures Excel chart series colors, line style, and markers.

## Syntax

```
Set-OfficeExcelChartSeries
-Chart <ExcelChart>
[-FillColor <String>]
[-LineColor <String>]
[-LineWidthPoints <Double>]
[-MarkerFillColor <String>]
[-MarkerLineColor <String>]
[-MarkerLineWidthPoints <Double>]
[-MarkerSize <Int32>]
[-MarkerStyle <OfficeChartMarkerShape>]
[-PassThru]
-SeriesIndex <Int32>
[<CommonParameters>]
```

[#](#method-set-officeexcelchartseries-excelchart-string-string-double-string-string-double-int32-officechartmarkershape-switchparameter-int32)

Parameter set: `Index`

```
Set-OfficeExcelChartSeries
-Chart <ExcelChart>
[-FillColor <String>]
[-IgnoreCase <Boolean>]
[-LineColor <String>]
[-LineWidthPoints <Double>]
[-MarkerFillColor <String>]
[-MarkerLineColor <String>]
[-MarkerLineWidthPoints <Double>]
[-MarkerSize <Int32>]
[-MarkerStyle <OfficeChartMarkerShape>]
[-PassThru]
-SeriesName <String>
[<CommonParameters>]
```

[#](#method-set-officeexcelchartseries-excelchart-string-boolean-string-double-string-string-double-int32-officechartmarkershape-switchparameter-string)

Parameter set: `Name`

## Examples

### Format a series by name.

```powershell
$chart | Set-OfficeExcelChartSeries -SeriesName 'Revenue' -FillColor '#4472C4' -LineColor '#1F4E79' -MarkerStyle Circle -MarkerSize 6
```

Applies fill, line, and marker settings to the Revenue series.

## Parameters

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

Chart to update.

**-FillColor String optional**

Series fill color. Named colors and hexadecimal values are accepted.

**-LineColor String optional**

Series line color. Named colors and hexadecimal values are accepted.

**-LineWidthPoints Double optional**

Series line width in points.

**-MarkerFillColor String optional**

Marker fill color. Named colors and hexadecimal values are accepted.

**-MarkerLineColor String optional**

Marker line color. Named colors and hexadecimal values are accepted.

**-MarkerLineWidthPoints Double optional**

Marker line width in points.

**-MarkerSize Int32 optional**

Marker size.

**-MarkerStyle OfficeChartMarkerShape optional**

Marker style name.

Possible values: `Auto`, `Circle`, `Dash`, `Diamond`, `Dot`, `Picture`, `Plus`, `Square`, `Star`, `Triangle`, `X`

**-PassThru SwitchParameter optional**

Emit the object created or changed by the command.

**-SeriesIndex Int32 requiredsets: Index**

Zero-based series index.

**-IgnoreCase Boolean optionalsets: Name**

Ignore case when matching series name.

**-SeriesName String requiredsets: Name**

Series name.

## 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:ECD4D5DFD450986ABB47FDB619BE5B01258E01C920D0185F239FF4B5E7411153 -->
