API Reference
Cmdlet
Set-OfficeExcelChartSeries
Configures Excel chart series colors, line style, and markers.
Remarks
Configures Excel chart series colors, line style, and markers.
Examples
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 <Nullable`1>] [-MarkerFillColor <String>] [-MarkerLineColor <String>] [-MarkerLineWidthPoints <Nullable`1>] [-MarkerSize <Nullable`1>] [-MarkerStyle <String>] -SeriesIndex <Int32> [<CommonParameters>]#Parameter set:
IndexParameters
- Chart ExcelChart
- Chart to update.
- FillColor String
- Series fill color in hex format.
- LineColor String
- Series line color in hex format.
- LineWidthPoints Nullable`1
- Series line width in points.
- MarkerFillColor String
- Marker fill color in hex format.
- MarkerLineColor String
- Marker line color in hex format.
- MarkerLineWidthPoints Nullable`1
- Marker line width in points.
- MarkerSize Nullable`1
- Marker size.
- MarkerStyle String
- Marker style name.
- SeriesIndex Int32
- Zero-based series index.
Outputs
OfficeIMO.Excel.ExcelChart
Set-OfficeExcelChartSeries -Chart <ExcelChart> [-FillColor <String>] [-IgnoreCase <Boolean>] [-LineColor <String>] [-LineWidthPoints <Nullable`1>] [-MarkerFillColor <String>] [-MarkerLineColor <String>] [-MarkerLineWidthPoints <Nullable`1>] [-MarkerSize <Nullable`1>] [-MarkerStyle <String>] -SeriesName <String> [<CommonParameters>]#Parameter set:
NameParameters
- Chart ExcelChart
- Chart to update.
- FillColor String
- Series fill color in hex format.
- IgnoreCase Boolean
- Ignore case when matching series name.
- LineColor String
- Series line color in hex format.
- LineWidthPoints Nullable`1
- Series line width in points.
- MarkerFillColor String
- Marker fill color in hex format.
- MarkerLineColor String
- Marker line color in hex format.
- MarkerLineWidthPoints Nullable`1
- Marker line width in points.
- MarkerSize Nullable`1
- Marker size.
- MarkerStyle String
- Marker style name.
- SeriesName String
- Series name.
Outputs
OfficeIMO.Excel.ExcelChart