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

Namespace PSWriteHTML

Creates a new chart grid with customizable options.

Remarks

This function creates a new chart grid with the provided parameters. It allows customization of the grid visibility, colors, opacity, padding, and other styling options.

Examples

Authored help example

EXAMPLE 1


New-ChartGrid -Show -BorderColor 'black' -StrokeDash 2 -Position 'front' -xAxisLinesShow -yAxisLinesShow -RowColors @('red', 'blue') -RowOpacity 0.7 -ColumnColors @('green', 'yellow') -ColumnOpacity 0.8 -PaddingTop 10 -PaddingRight 5 -PaddingBottom 15 -PaddingLeft 5
        

Creates a new chart grid with specified options including visible grid, black border color, dashed border style, front position, visible x-axis and y-axis lines, red and blue row colors with 0.7 opacity, green and yellow column colors with 0.8 opacity, and padding values.

EXAMPLE 2


New-ChartGrid -Show -BorderColor 'gray' -RowColors @('orange', 'purple') -ColumnColors @('pink', 'cyan') -PaddingTop 5 -PaddingRight 5 -PaddingBottom 5 -PaddingLeft 5
        

Creates a new chart grid with visible grid, gray border color, orange and purple row colors, pink and cyan column colors, and equal padding values.

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-ChartGrid [-BorderColor <String>] [-ColumnColors <String[]>] [-ColumnOpacity <Double>] [-PaddingBottom <Int32>] [-PaddingLeft <Int32>] [-PaddingRight <Int32>] [-PaddingTop <Int32>] [-Position <front|back|default>] [-RowColors <String[]>] [-RowOpacity <Double>] [-Show] [-StrokeDash <Int32>] [-xAxisLinesShow] [-yAxisLinesShow] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

BorderColor String optionalposition: 0pipeline: False
The color of the grid border.
ColumnColors String[] optionalposition: 5pipeline: False
An array of colors for the columns in the grid.
ColumnOpacity Double optionalposition: 6pipeline: False
The opacity of the column colors. Valid range is 0 to 1. Default is 0.5.
PaddingBottom Int32 optionalposition: 9pipeline: False
The bottom padding of the grid.
PaddingLeft Int32 optionalposition: 10pipeline: False
The left padding of the grid.
PaddingRight Int32 optionalposition: 8pipeline: False
The right padding of the grid.
PaddingTop Int32 optionalposition: 7pipeline: False
The top padding of the grid.
Position String optionalposition: 2pipeline: Falsevalues: 3
The position of the grid. Accepted values are 'front', 'back', 'default'. Default is 'default'.
Possible values: front, back, default
RowColors String[] optionalposition: 3pipeline: False
An array of colors for the rows in the grid.
RowOpacity Double optionalposition: 4pipeline: False
The opacity of the row colors. Valid range is 0 to 1. Default is 0.5.
Show SwitchParameter optionalposition: namedpipeline: False
Indicates whether the grid is visible.
StrokeDash Int32 optionalposition: 1pipeline: False
The style of the grid border. Default is 0.
xAxisLinesShow SwitchParameter optionalposition: namedpipeline: False
Indicates whether the x-axis lines are visible.
yAxisLinesShow SwitchParameter optionalposition: namedpipeline: False
Indicates whether the y-axis lines are visible.