# New-ChartToolbar

Creates a new chart toolbar object with customizable options.

Project

PSWriteHTML

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

[View on GitHub](https://github.com/EvotecIT/PSWriteHTML) [Visit Website](#) [Releases](https://github.com/EvotecIT/PSWriteHTML/releases/tag/v1.41.0) [Changelog](#) [Get package](https://www.powershellgallery.com/packages/PSWriteHTML/1.40.0)

Stars **1,025**

Forks **114**

Open issues 

PowerShell Gallery downloads **7,576,901**

Release **v1.45.0**

Language: PowerShell Updated: 2026-11-19

Command 

**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>]
```

[#](#method-new-charttoolbar-string-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter-switchparameter)

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

```powershell
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

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

Evotec API Reference Copyright 2026 Evotec Services

<!-- PowerForge markdown artifact sha256:65F4741DCDFB84171AE542883D188A19AF555A8371A15C4783E38344469E7E6D -->
