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-ChartDesign

Module PSWriteHTML

Configures charts gradient, image, pattern and dropShadow options

Syntax

New-ChartDesign [[-DropShadowBlur] <Nullable`1>] [[-DropShadowColor] <String[]>] [-DropShadowEnabled] [[-DropShadowEnabledOnSries] <Array>] [[-DropShadowLeft] <Nullable`1>] [[-DropShadowOpacity] <Nullable`1>] [[-DropShadowTop] <Nullable`1>] [[-GradientGradientToColors] <String[]>] [-GradientInverseColors] [[-GradientOpacityFrom] <Single[]>] [[-GradientOpacityTo] <Single[]>] [[-GradientShade] <light|dark>] [[-GradientShadeIntensity] <Nullable`1>] [[-GradientStops] <Object>] [[-GradientType] <horizontal|vertical|diagonal1|diagonal2>] [[-ImageHeight] <String[]>] [[-ImageSource] <String[]>] [[-ImageWidth] <String[]>] [[-PatternHeight] <String>] [[-PatternStrokeWidth] <String>] [[-PatternStyle] <verticalLines|horizontalLines|slantedLines|squares|circles>] [[-PatternWidth] <String>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

Long description

Examples

Authored help example

EXAMPLE 1

An example

Parameters

-DropShadowBlur Nullable`1 optionalposition: 18
Set blur distance for shadow
-DropShadowColor String[] optionalposition: 16
Give a color to the shadow. If array is provided, each series can have different shadow color
-DropShadowEnabled SwitchParameter optional
Enable a dropshadow for paths of the SVG
-DropShadowEnabledOnSries Array optionalposition: 14
Provide series index on which the dropshadow should be enabled.
-DropShadowLeft Nullable`1 optionalposition: 17
Set left offset for shadow
-DropShadowOpacity Nullable`1 optionalposition: 19
Set the opacity of shadow
-DropShadowTop Nullable`1 optionalposition: 15
Set top offset for shadow
-GradientGradientToColors String[] optionalposition: 3
Optional colors that ends the gradient to. The main colors array becomes the gradientFromColors and this array becomes the end colors of the gradient. Each index in the array corresponds to the series-index.
-GradientInverseColors SwitchParameter optional
Inverse the start and end colors of the gradient.
-GradientOpacityFrom Single[] optionalposition: 4
Start color's opacity. If you want different opacity for different series, you can pass an array of numbers.
-GradientOpacityTo Single[] optionalposition: 5
End color's opacity. If you want different opacity for different series, you can pass an array of numbers.
-GradientShade String optionalposition: 0
Available options for gradient shade
Possible values: light, dark
-GradientShadeIntensity Nullable`1 optionalposition: 2
Intensity of the gradient shade
-GradientStops Object optionalposition: 6
Stops defines the ramp of colors to use on a gradient
-GradientType String optionalposition: 1
Available options for gradient type
Possible values: horizontal, vertical, diagonal1, diagonal2
-ImageHeight String[] optionalposition: 9
Height of each image for all the series
-ImageSource String[] optionalposition: 7
Accepts an array of image paths which will correspond to each series.
-ImageWidth String[] optionalposition: 8
Width of each image for all the series
-PatternHeight String optionalposition: 12
Pattern height which will be repeated at this interval
-PatternStrokeWidth String optionalposition: 13
Pattern lines width indicates the thickness of the stroke of pattern.
-PatternStyle String optionalposition: 10
Available pattern styles
Possible values: verticalLines, horizontalLines, slantedLines, squares, circles
-PatternWidth String optionalposition: 11
Pattern width which will be repeated at this interval

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.