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

Namespace PSWriteHTML

Creates a new map legend slice.

Remarks

This function creates a new map legend slice with specified parameters.

Examples

Authored help example

EXAMPLE 1


New-MapLegendSlice -Label "Slice 1" -FillColor "Blue" -MinimumValue 0 -MaximumValue 100 -DisplayInLegend $true
        

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-MapLegendSlice [-DisplayInLegend <Nullable`1>] [-FillColor <String>] [-HoverFillColor <String>] [-HoverStrokeWidth <Nullable`1>] [-HoverTransform <String>] [-InitializeClicked <Nullable`1>] [-Label <String>] [-MaximumValue <Nullable`1>] [-MinimumValue <Nullable`1>] [-Size <Nullable`1>] [-StrokeWidth <Nullable`1>] [-Transform <String>] -Type <area|plot> [-Value <Nullable`1>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

DisplayInLegend Nullable`1 optionalposition: 11pipeline: False
Specifies whether to display the slice in the legend. Default is true.
FillColor String optionalposition: 2pipeline: Falsealiases: SliceColor
The color to fill the slice with.
HoverFillColor String optionalposition: 3pipeline: Falsealiases: HoverSliceColor
HoverStrokeWidth Nullable`1 optionalposition: 7pipeline: False
HoverTransform String optionalposition: 6pipeline: False
InitializeClicked Nullable`1 optionalposition: 12pipeline: False
Set to true to initialize the legend item in the 'clicked' state on map load. Default is false.
Label String optionalposition: 1pipeline: False
The label of the slice for the legend.
MaximumValue Nullable`1 optionalposition: 9pipeline: False
The maximum value for the interval defining the slice.
MinimumValue Nullable`1 optionalposition: 8pipeline: False
The minimum value for the interval defining the slice.
Size Nullable`1 optionalposition: 13pipeline: False
StrokeWidth Nullable`1 optionalposition: 4pipeline: False
Transform String optionalposition: 5pipeline: False
Type Object requiredposition: 0pipeline: Falsevalues: 2
Possible values: area, plot
Value Nullable`1 optionalposition: 10pipeline: False
The fixed value for the slice. Use this instead of 'MinimumValue' and 'MaximumValue' to set a specific value.