Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

Stars 1,019
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.41.0
Language: PowerShell Updated: 2026-10-03
Command

New-ChartTheme

Module PSWriteHTML

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 Sets

Description

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

Authored help example

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 optionalposition: 2
Sets the base color for the chart theme.
-Mode String optionalposition: 0
Specifies the mode of the chart theme. Valid values are 'light' or 'dark'.
Possible values: light, dark
-Monochrome SwitchParameter optional
Switch parameter to enable monochrome mode for the chart theme.
-Palette String optionalposition: 1
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 optionalposition: 4
Specifies the intensity of the shading effect for the chart theme.
-ShadeTo String optionalposition: 3
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.