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

Namespace PSWriteHTML

Creates a new chart marker with customizable options.

Remarks

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
}
        

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

Parameters

Color String[] optionalposition: 1pipeline: False
Sets the fill color(s) of the marker point.
FillOpacity Int32[] optionalposition: 6pipeline: False
Specifies the opacity of the marker fill color.
HoverSize Int32[] optionalposition: 11pipeline: False
Specifies the fixed size of the marker when it is active.
HoverSizeOffset Int32[] optionalposition: 12pipeline: False
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: 9pipeline: False
Sets the left offset of the marker.
OffsetY Int32[] optionalposition: 10pipeline: False
Sets the top offset of the marker.
Radius Int32[] optionalposition: 8pipeline: False
Specifies the radius of the marker (applies to square shape).
Shape String[] optionalposition: 7pipeline: Falsevalues: 2
Defines the shape of the marker. Available options for shape are circle or square.
Possible values: circle, square
ShowNullDataPoints SwitchParameter optionalposition: namedpipeline: False
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: 0pipeline: False
Specifies the size of the marker point.
StrokeColors String[] optionalposition: 2pipeline: False
Specifies the stroke color of the marker. Accepts a single color or an array of colors in a multi-series chart.
StrokeDashArray Int32[] optionalposition: 5pipeline: False
Defines the dashes in the border around the marker. A higher number creates more space between dashes in the border.
StrokeOpacity Int32[] optionalposition: 4pipeline: False
Specifies the opacity of the border around the marker.
StrokeWidth Int32[] optionalposition: 3pipeline: False
Sets the stroke size of the marker.