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

Module PSWriteHTML

Creates a new chart event for a specified DataTable.

Syntax

New-ChartEvent [-ColumnID] <Int32> [-DataTableID] <String> [-EscapeRegex] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This function creates a new chart event for a specified DataTable. It allows for defining events like click, data point selection, and marker click for the chart.

Examples

Authored help example

EXAMPLE 1

New-ChartEvent -DataTableID "table1" -ColumnID 1 -EscapeRegex
Creates a new chart event for DataTable with ID "table1" on column 1 with regular expression escaping enabled.

EXAMPLE 2

New-ChartEvent -DataTableID "table2" -ColumnID 2
Creates a new chart event for DataTable with ID "table2" on column 2 without regular expression escaping.

Parameters

-ColumnID Int32 requiredposition: 1
Specifies the ID of the column in the DataTable for which the chart event is being created.
-DataTableID String requiredposition: 0
Specifies the ID of the DataTable for which the chart event is being created.
-EscapeRegex SwitchParameter optional
Indicates whether to escape regular expressions in the chart event.

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.