Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-ChartTheme

Namespace PSWriteHTML

Creates a new chart theme with customizable options.

Remarks

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.
        

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

New-ChartTheme [-Color <String>] [-Mode <light|dark>] [-Monochrome] [-Palette <palette1>] [-ShadeIntensity <Double>] [-ShadeTo <light|dark>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

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