API Reference
Command
New-HtmlXChart
Creates an ApexCharts container and configures it via nested chart cmdlets.
Remarks
Part of the HtmlForgeX.PowerShell DSL.
Examples
Example 1: Create a simple bar chart.
New-HtmlXChart -Title "Services" {
New-HtmlXChartBar -Name "OK" -Value 120
New-HtmlXChartBar -Name "Fail" -Value 12
}
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-HtmlXChart [-Content <ScriptBlock>] [-Title <string>] [<CommonParameters>]#Parameters
- Content ScriptBlock
- Scriptblock that emits chart series or data points.
- Title string
- Chart title shown above the visualization.
Outputs
HtmlForgeX.ApexCharts