Command
New-ChartTheme
Creates a new chart theme with customizable options.
Syntax
New-ChartTheme [[-Color] <String>] [[-Mode] <light|dark>] [-Monochrome] [[-Palette] <String>] [[-ShadeIntensity] <Double>] [[-ShadeTo] <light|dark>] [<CommonParameters>]#Parameter set:
All Parameter SetsDescription
This function defines the properties of a chart theme, such as mode, palette, color, shade, and intensity. It allows customization of the theme appearance in the chart.
Examples
EXAMPLE 1
New-ChartTheme -Mode 'dark' -Palette 'palette3' -Monochrome -Color 'Red' -ShadeTo 'dark' -ShadeIntensity 0.8
Creates a new chart theme with dark mode, palette 3, monochrome enabled, red base color, dark shading, and intensity of 0.8.EXAMPLE 2
New-ChartTheme -Mode 'light' -Palette 'palette7' -Color 'Blue' -ShadeTo 'light' -ShadeIntensity 0.6
Creates a new chart theme with light mode, palette 7, blue base color, light shading, and intensity of 0.6.Parameters
- -Color String
- Sets the base color for the chart theme.
- -Mode String
- Specifies the mode of the chart theme. Valid values are 'light' or 'dark'.
- Possible values:
light,dark - -Monochrome SwitchParameter
- Switch parameter to enable monochrome mode for the chart theme.
- -Palette String
- Specifies the color palette for the chart theme. Valid values are 'palette1' through 'palette10'.
- Possible values:
palette1,palette2,palette3,palette4,palette5,palette6,palette7,palette8,palette9,palette10 - -ShadeIntensity Double
- Specifies the intensity of the shading effect for the chart theme.
- -ShadeTo String
- Specifies the shading direction for the chart theme. Valid values are 'light' or 'dark'.
- Possible values:
light,dark
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.