Cmdlet
Set-OfficeExcelChartSeries
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>]#Parameter set:
IndexSet-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>]#Parameter set:
NameExamples
Format a series by name.
$chart | Set-OfficeExcelChartSeries -SeriesName 'Revenue' -FillColor '#4472C4' -LineColor '#1F4E79' -MarkerStyle Circle -MarkerSize 6Applies fill, line, and marker settings to the Revenue series.
Parameters
- -Chart ExcelChart
- Chart to update.
- -FillColor String
- Series fill color. Named colors and hexadecimal values are accepted.
- -LineColor String
- Series line color. Named colors and hexadecimal values are accepted.
- -LineWidthPoints Double
- Series line width in points.
- -MarkerFillColor String
- Marker fill color. Named colors and hexadecimal values are accepted.
- -MarkerLineColor String
- Marker line color. Named colors and hexadecimal values are accepted.
- -MarkerLineWidthPoints Double
- Marker line width in points.
- -MarkerSize Int32
- Marker size.
- -MarkerStyle OfficeChartMarkerShape
- Marker style name.
- Possible values:
Auto,Circle,Dash,Diamond,Dot,Picture,Plus,Square,Star,Triangle,X - -PassThru SwitchParameter
- Emit the object created or changed by the command.
- -SeriesIndex Int32
- Zero-based series index.
- -IgnoreCase Boolean
- Ignore case when matching series name.
- -SeriesName String
- 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.