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

Module PSWriteHTML

Creates a new chart marker with customizable options.

Syntax

New-ChartMarker [[-Color] <String[]>] [[-FillOpacity] <Int32[]>] [[-HoverSize] <Int32[]>] [[-HoverSizeOffset] <Int32[]>] [[-OffsetX] <Int32[]>] [[-OffsetY] <Int32[]>] [[-Radius] <Int32[]>] [[-Shape] <circle|square>] [-ShowNullDataPoints] [[-Size] <Nullable`1>] [[-StrokeColors] <String[]>] [[-StrokeDashArray] <Int32[]>] [[-StrokeOpacity] <Int32[]>] [[-StrokeWidth] <Int32[]>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Description

This function defines the properties of a chart marker, such as size, color, shape, and other visual attributes. It allows customization of the marker appearance in the chart.

Examples

Authored help example

EXAMPLE 1

New-HTMLChart -Title 'Incidents Reported vs Solved' -TitleAlignment center {
    New-ChartMarker -Size 30 -Color red -Shape square -StrokeColors yellow
}

Parameters

-Color String[] optionalposition: 1
Sets the fill color(s) of the marker point.
-FillOpacity Int32[] optionalposition: 6
Specifies the opacity of the marker fill color.
-HoverSize Int32[] optionalposition: 11
Specifies the fixed size of the marker when it is active.
-HoverSizeOffset Int32[] optionalposition: 12
Unlike the fixed size, this option takes the original marker size and increases/decreases the value based on it. For example, if markers.size is 6 and markers.hover.sizeOffset is 3, the marker's size will be 9 when hovered.
-OffsetX Int32[] optionalposition: 9
Sets the left offset of the marker.
-OffsetY Int32[] optionalposition: 10
Sets the top offset of the marker.
-Radius Int32[] optionalposition: 8
Specifies the radius of the marker (applies to square shape).
-Shape String[] optionalposition: 7
Defines the shape of the marker. Available options for shape are circle or square.
Possible values: circle, square
-ShowNullDataPoints SwitchParameter optional
Determines whether to show markers for null values in a line/area chart. If disabled, any null values present in line/area charts will not be visible.
-Size Nullable`1 optionalposition: 0
Specifies the size of the marker point.
-StrokeColors String[] optionalposition: 2
Specifies the stroke color of the marker. Accepts a single color or an array of colors in a multi-series chart.
-StrokeDashArray Int32[] optionalposition: 5
Defines the dashes in the border around the marker. A higher number creates more space between dashes in the border.
-StrokeOpacity Int32[] optionalposition: 4
Specifies the opacity of the border around the marker.
-StrokeWidth Int32[] optionalposition: 3
Sets the stroke size of the marker.

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.