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

Namespace PSWriteHTML

Creates a new chart event for a specified DataTable.

Remarks

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.
        

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-ChartEvent -ColumnID <Int32> -DataTableID <String> [-EscapeRegex] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

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