HtmlForgeX

API Reference

Command

New-HtmlXChart

Namespace HtmlForgeX.PowerShell
Outputs
HtmlForgeX.ApexCharts

Creates an ApexCharts container and configures it via nested chart cmdlets.

Remarks

Part of the HtmlForgeX.PowerShell DSL.

Examples

Authored help example

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 optionalposition: 0pipeline: false
Scriptblock that emits chart series or data points.
Title string optionalposition: namedpipeline: false
Chart title shown above the visualization.

Outputs

HtmlForgeX.ApexCharts