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

Namespace PSWriteHTML

Creates a new chart toolbar object with customizable options.

Remarks

This function defines a chart toolbar object with various tools such as download, selection, zoom, zoom in, zoom out, pan, and reset. It allows customization of the toolbar appearance and behavior.

Examples

Authored help example

EXAMPLE 1


New-ChartToolbar -Download -Selection -Zoom -ZoomIn -ZoomOut -Pan -Reset -AutoSelected 'zoom'
Creates a new chart toolbar object with all tools enabled and the default tool set to zoom.
        

EXAMPLE 2


New-ChartToolbar -Download -Zoom -ZoomOut -Pan -AutoSelected 'pan'
Creates a new chart toolbar object with download, zoom, zoom out, and pan tools enabled, and the default tool set to pan.
        

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-ChartToolbar [-AutoSelected <zoom|selection|pan>] [-Download] [-Pan] [-Reset] [-Selection] [-Zoom] [-ZoomIn] [-ZoomOut] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

AutoSelected String optionalposition: 0pipeline: Falsevalues: 3
Specifies the default tool to be auto-selected when the toolbar is loaded. Valid values are 'zoom', 'selection', or 'pan'. Default is 'zoom'.
Possible values: zoom, selection, pan
Download SwitchParameter optionalposition: namedpipeline: False
Switch parameter to enable the download tool in the toolbar.
Pan SwitchParameter optionalposition: namedpipeline: False
Switch parameter to enable the pan tool in the toolbar.
Reset SwitchParameter optionalposition: namedpipeline: False
Switch parameter to enable the reset tool in the toolbar.
Selection SwitchParameter optionalposition: namedpipeline: False
Switch parameter to enable the selection tool in the toolbar.
Zoom SwitchParameter optionalposition: namedpipeline: False
Switch parameter to enable the zoom tool in the toolbar.
ZoomIn SwitchParameter optionalposition: namedpipeline: False
Switch parameter to enable the zoom in tool in the toolbar.
ZoomOut SwitchParameter optionalposition: namedpipeline: False
Switch parameter to enable the zoom out tool in the toolbar.