Project

PSWriteOffice

PowerShell document automation across Word, Excel, PowerPoint, PDF, Reader, Confluence, Visio, and open text formats.

Stars 159
Forks 14
PowerShell Gallery downloads 158,661
Release v3.0.5
Language: C# Updated: 2026-09-03

API Reference

Cmdlet

Set-OfficeExcelChartSeries

Aliases: ExcelChartSeries
Namespace PSWriteOffice
Aliases
ExcelChartSeries
Inputs
OfficeIMO.Excel.ExcelChart
Outputs
OfficeIMO.Excel.ExcelChart

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

Remarks

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

Examples

Authored help example

Format a series by name.

PS>


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

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

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

Set-OfficeExcelChartSeries -Chart <ExcelChart> [-FillColor <String>] [-LineColor <String>] [-LineWidthPoints <Double>] [-MarkerFillColor <String>] [-MarkerLineColor <String>] [-MarkerLineWidthPoints <Double>] [-MarkerSize <Int32>] [-MarkerStyle <Auto>] [-PassThru] -SeriesIndex <Int32> [<CommonParameters>]
#
Parameter set: Index

Parameters

Chart ExcelChart requiredposition: namedpipeline: True (ByValue)
Chart to update.
FillColor String optionalposition: namedpipeline: False
Series fill color. Named colors and hexadecimal values are accepted.
LineColor String optionalposition: namedpipeline: False
Series line color. Named colors and hexadecimal values are accepted.
LineWidthPoints Double optionalposition: namedpipeline: False
Series line width in points.
MarkerFillColor String optionalposition: namedpipeline: False
Marker fill color. Named colors and hexadecimal values are accepted.
MarkerLineColor String optionalposition: namedpipeline: False
Marker line color. Named colors and hexadecimal values are accepted.
MarkerLineWidthPoints Double optionalposition: namedpipeline: False
Marker line width in points.
MarkerSize Int32 optionalposition: namedpipeline: False
Marker size.
MarkerStyle OfficeChartMarkerShape optionalposition: namedpipeline: Falsevalues: 11
Marker style name.
Possible values: Auto, Circle, Dash, Diamond, Dot, Picture, Plus, Square, Star, Triangle, X
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the object created or changed by the command.
SeriesIndex Int32 requiredposition: namedpipeline: False
Zero-based series index.

Outputs

OfficeIMO.Excel.ExcelChart

Set-OfficeExcelChartSeries -Chart <ExcelChart> [-FillColor <String>] [-IgnoreCase <Boolean>] [-LineColor <String>] [-LineWidthPoints <Double>] [-MarkerFillColor <String>] [-MarkerLineColor <String>] [-MarkerLineWidthPoints <Double>] [-MarkerSize <Int32>] [-MarkerStyle <Auto>] [-PassThru] -SeriesName <String> [<CommonParameters>]
#
Parameter set: Name

Parameters

Chart ExcelChart requiredposition: namedpipeline: True (ByValue)
Chart to update.
FillColor String optionalposition: namedpipeline: False
Series fill color. Named colors and hexadecimal values are accepted.
IgnoreCase Boolean optionalposition: namedpipeline: False
Ignore case when matching series name.
LineColor String optionalposition: namedpipeline: False
Series line color. Named colors and hexadecimal values are accepted.
LineWidthPoints Double optionalposition: namedpipeline: False
Series line width in points.
MarkerFillColor String optionalposition: namedpipeline: False
Marker fill color. Named colors and hexadecimal values are accepted.
MarkerLineColor String optionalposition: namedpipeline: False
Marker line color. Named colors and hexadecimal values are accepted.
MarkerLineWidthPoints Double optionalposition: namedpipeline: False
Marker line width in points.
MarkerSize Int32 optionalposition: namedpipeline: False
Marker size.
MarkerStyle OfficeChartMarkerShape optionalposition: namedpipeline: Falsevalues: 11
Marker style name.
Possible values: Auto, Circle, Dash, Diamond, Dot, Picture, Plus, Square, Star, Triangle, X
PassThru SwitchParameter optionalposition: namedpipeline: False
Emit the object created or changed by the command.
SeriesName String requiredposition: namedpipeline: False
Series name.

Outputs

OfficeIMO.Excel.ExcelChart