API Reference
New-HTMLChart
Creates a new HTML chart with customizable settings.
Remarks
This function creates a new HTML chart with customizable settings such as title, subtitle, dimensions, colors, and more.
Examples
EXAMPLE 1
New-HTMLChart -Title "Sales Data" -ChartSettings {
// Chart configuration settings here
}
Creates a new HTML chart with the title "Sales Data" and custom chart settings.
EXAMPLE 2
New-HTMLChart -Title "Sales Data" -SubTitle "Quarterly Sales" -Height 400 -Width 600 -Gradient -Id "SalesChart"
Creates a new HTML chart with the title "Sales Data", subtitle "Quarterly Sales", height of 400, width of 600, gradient colors, and specified ID.
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-HTMLChart [-ChartSettings <ScriptBlock>] [-Gradient] [-Group <String>] [-Height <Object>] [-Id <String>] [-Patterned] [-SubTitle <String>] [-SubTitleAlignment <center|left|right>] [-SubTitleColor <String>] [-SubTitleFloating <Nullable`1>] [-SubTitleFontFamily <String>] [-SubTitleFontSize <Object>] [-SubTitleFontWeight <normal>] [-SubTitleMargin <Nullable`1>] [-SubTitleOffsetX <Nullable`1>] [-SubTitleOffsetY <Nullable`1>] [-Title <String>] [-TitleAlignment <center|left|right>] [-TitleColor <String>] [-TitleFloating <Nullable`1>] [-TitleFontFamily <String>] [-TitleFontSize <Object>] [-TitleFontWeight <normal>] [-TitleMargin <Nullable`1>] [-TitleOffsetX <Nullable`1>] [-TitleOffsetY <Nullable`1>] [-Width <Object>] [<CommonParameters>]
#
All Parameter SetsParameters
- ChartSettings ScriptBlock
- Specifies the settings for the chart. This should be a ScriptBlock containing the chart configuration.
- Gradient SwitchParameter
- Indicates whether to use gradient colors in the chart.
- Group String
- Specifies the group to which the chart belongs.
- Height Object
- Specifies the height of the chart. Default is 350.
- Id String
- Specifies the ID of the chart. If not provided, a random ID will be generated.
- Patterned SwitchParameter
- Indicates whether to use patterned colors in the chart.
- SubTitle String
- Specifies the subtitle of the chart.
- SubTitleAlignment String
- Specifies the alignment of the chart subtitle. Valid values are 'center', 'left', or 'right'.
- Possible values:
center,left,right - SubTitleColor String
- Specifies the color of the chart subtitle.
- SubTitleFloating Nullable`1
- Specifies whether the chart subtitle should float.
- SubTitleFontFamily String
- Specifies the font family of the chart subtitle.
- SubTitleFontSize Object
- Specifies the font size of the chart subtitle.
- SubTitleFontWeight String
- Specifies the font weight of the chart subtitle. Valid values are 'normal', 'bold', 'bolder', 'lighter', or numeric values from '100' to '900'.
- Possible values:
normal,bold,bolder,lighter,100,200,300,400,500,600,700,800,900 - SubTitleMargin Nullable`1
- Specifies the margin of the chart subtitle.
- SubTitleOffsetX Nullable`1
- Specifies the horizontal offset of the chart subtitle.
- SubTitleOffsetY Nullable`1
- Specifies the vertical offset of the chart subtitle.
- Title String
- Specifies the title of the chart.
- TitleAlignment String
- Specifies the alignment of the chart title. Valid values are 'center', 'left', or 'right'.
- Possible values:
center,left,right - TitleColor String
- Specifies the color of the chart title.
- TitleFloating Nullable`1
- Specifies whether the chart title should float.
- TitleFontFamily String
- Specifies the font family of the chart title.
- TitleFontSize Object
- Specifies the font size of the chart title.
- TitleFontWeight String
- Specifies the font weight of the chart title. Valid values are 'normal', 'bold', 'bolder', 'lighter', or numeric values from '100' to '900'.
- Possible values:
normal,bold,bolder,lighter,100,200,300,400,500,600,700,800,900 - TitleMargin Nullable`1
- Specifies the margin of the chart title.
- TitleOffsetX Nullable`1
- Specifies the horizontal offset of the chart title.
- TitleOffsetY Nullable`1
- Specifies the vertical offset of the chart title.
- Width Object
- Specifies the width of the chart.