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

Namespace PSWriteHTML

Configures DataLabels for Charts

Remarks

Configures DataLabels for Charts

Examples

Authored help example

EXAMPLE 1


An example
        

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-ChartDataLabel [-Distributed] [-Enabled] [-FontColor <String[]>] [-FontFamily <String>] [-FontSize <Object>] [-OffsetX <Nullable`1>] [-OffsetY <Nullable`1>] [-TextAnchor <start|middle|end>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Distributed SwitchParameter optionalposition: namedpipeline: False
Similar to plotOptions.bar.distributed, this option makes each data-label discrete. So, when you provide an array of colors in datalabels.style.colors, the index in the colors array correlates with individual data-label index of all series.
Enabled SwitchParameter optionalposition: namedpipeline: False
To determine whether to show dataLabels or not
FontColor String[] optionalposition: 5pipeline: Falsealiases: DataLabelsColor
FontColors for the dataLabels. Accepts an array of string colors. Each index in the array corresponds to the series
FontFamily String optionalposition: 4pipeline: False
FontFamily for the label
FontSize Object optionalposition: 3pipeline: Falsealiases: DataLabelsFontSize
FontSize for the label
OffsetX Nullable`1 optionalposition: 1pipeline: Falsealiases: DataLabelsOffsetX
Sets the left offset for dataLabels
OffsetY Nullable`1 optionalposition: 2pipeline: False
Sets the top offset for dataLabels
TextAnchor String optionalposition: 0pipeline: Falsevalues: 3
The alignment of text relative to dataLabel’s drawing position. Accepted values: start, middle, end
Possible values: start, middle, end