Evotec

Project

PSWriteHTML

PSWriteHTML is an open-source PowerShell project with packages, release history, and working documentation.

Stars 995
Forks 114
Open issues 69
PowerShell Gallery downloads 7,436,513
Release v1.41.0
Language: PowerShell Updated: 2026-04-11

API Reference

Function

New-ChartSpark

Namespace PSWriteHTML

Creates a new spark chart object.

Remarks

This function creates a new spark chart object with the specified Name, Value, and Color.

Examples

Authored help example

EXAMPLE 1


New-ChartSpark -Name "Spark1" -Value 100 -Color "Green"
Creates a new spark chart object named "Spark1" with a value of 100 and a green color.
        

EXAMPLE 2


New-ChartSpark -Name "Spark2" -Value 50
Creates a new spark chart object named "Spark2" with a value of 50 using the default color.
        

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-ChartSpark [-Color <String>] [-Name <String>] [-Value <Object>] [<CommonParameters>]
#
Parameter set: All Parameter Sets

Parameters

Color String optionalposition: 2pipeline: False
Specifies the color of the spark chart.
Name String optionalposition: 0pipeline: False
Specifies the name of the spark chart.
Value Object optionalposition: 1pipeline: False
Specifies the value of the spark chart.