Project

PSWriteHTML

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

Stars 1,023
Forks 115
Open issues 54
PowerShell Gallery downloads 7,576,901
Release v1.45.0
Language: PowerShell Updated: 2026-11-03
Command

New-ChartToolbar

Module
PSWriteHTML

Creates a new chart toolbar object with customizable options.

Syntax

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

Description

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

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.

Parameters

-AutoSelected String optionalposition: 0
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 optional
Switch parameter to enable the download tool in the toolbar.
-Pan SwitchParameter optional
Switch parameter to enable the pan tool in the toolbar.
-Reset SwitchParameter optional
Switch parameter to enable the reset tool in the toolbar.
-Selection SwitchParameter optional
Switch parameter to enable the selection tool in the toolbar.
-Zoom SwitchParameter optional
Switch parameter to enable the zoom tool in the toolbar.
-ZoomIn SwitchParameter optional
Switch parameter to enable the zoom in tool in the toolbar.
-ZoomOut SwitchParameter optional
Switch parameter to enable the zoom out tool in the toolbar.

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.