For the complete documentation index, see llms.txt. This page is also available as Markdown.

New-UDChartJSDataset

Synopsis

Creates a new ChartJS dataset.

Syntax

New-UDChartJSDataset [[-Data] <Object>] [[-DataProperty] <String>] [[-Label] <String>] [[-BackgroundColor] <DashboardColor[]>] [[-BorderColor] <DashboardColor[]>] [[-BorderWidth] <Int32>] [[-HoverBackgroundColor] <DashboardColor[]>] [[-HoverBorderColor] <DashboardColor[]>] [[-HoverBorderWidth] <Int32>] [[-XAxisId] <String>] [[-YAxisId] <String>] [[-AdditionalOptions] <Hashtable>] [<CommonParameters>]

Description

Creates a new ChartJS dataset. This cmdlet is used to create a new dataset for New-UDChartJS.

Parameters

-Data

The data for the dataset. The format of the data depends on the type of chart you are creating.

Required?                    false
Position?                    1
Default value                @()
Accept pipeline input?       false
Aliases
Accept wildcard characters?  false

-DataProperty

The property of the data object to use as the data for the dataset.

-Label

The label for the dataset.

-BackgroundColor <DashboardColor[]>

The background color for the dataset.

-BorderColor <DashboardColor[]>

The border color for the dataset.

-BorderWidth

The border width for the dataset.

-HoverBackgroundColor <DashboardColor[]>

The hover background color for the dataset.

-HoverBorderColor <DashboardColor[]>

The hover border color for the dataset.

-HoverBorderWidth

The hover border width for the dataset.

-XAxisId

The ID of the X axis to use for the dataset.

-YAxisId

The ID of the Y axis to use for the dataset.

-AdditionalOptions

A hashtable of additional options to apply to the dataset. See the ChartJS documentation for more information.

Common parameters

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

Examples

Example 1: Create multiple datasets

Creates CPU and handle-count datasets and displays them in a bar chart.

Last updated

Was this helpful?