# New-ChartMarker

Creates a new chart marker with customizable options.

Project

PSWriteHTML

Generate HTML reports, dashboards, and emails from PowerShell without writing HTML, CSS, or JavaScript.

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**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>]
```

[#](#method-new-chartmarker-string-int32-int32-int32-int32-int32-int32-string-switchparameter-nullable-string-int32-int32-int32)

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

### Example 1

```powershell
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<T> 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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:C45B3DC6AB94A6CA0A6A19B63A1611070BF0362F0B6C11622CF1BF694ED92A2E -->
