API Reference
Function
New-ChartToolbar
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
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 SetsParameters
- AutoSelected String
- 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
- Switch parameter to enable the download tool in the toolbar.
- Pan SwitchParameter
- Switch parameter to enable the pan tool in the toolbar.
- Reset SwitchParameter
- Switch parameter to enable the reset tool in the toolbar.
- Selection SwitchParameter
- Switch parameter to enable the selection tool in the toolbar.
- Zoom SwitchParameter
- Switch parameter to enable the zoom tool in the toolbar.
- ZoomIn SwitchParameter
- Switch parameter to enable the zoom in tool in the toolbar.
- ZoomOut SwitchParameter
- Switch parameter to enable the zoom out tool in the toolbar.