API Reference
Function
New-ChartMarker
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
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 SetsParameters
- Color String[]
- Sets the fill color(s) of the marker point.
- FillOpacity Int32[]
- Specifies the opacity of the marker fill color.
- HoverSize Int32[]
- Specifies the fixed size of the marker when it is active.
- HoverSizeOffset Int32[]
- 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[]
- Sets the left offset of the marker.
- OffsetY Int32[]
- Sets the top offset of the marker.
- Radius Int32[]
- Specifies the radius of the marker (applies to square shape).
- Shape String[]
- Defines the shape of the marker. Available options for shape are circle or square.
- Possible values:
circle,square - ShowNullDataPoints SwitchParameter
- 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
- Specifies the size of the marker point.
- StrokeColors String[]
- Specifies the stroke color of the marker. Accepts a single color or an array of colors in a multi-series chart.
- StrokeDashArray Int32[]
- Defines the dashes in the border around the marker. A higher number creates more space between dashes in the border.
- StrokeOpacity Int32[]
- Specifies the opacity of the border around the marker.
- StrokeWidth Int32[]
- Sets the stroke size of the marker.