Skip to content
ChartForgeX
Command

New-ImageChartArea

Module imageplayground
Inputs
None
Outputs
ImagePlayground.ChartArea

Creates area chart data item.

Syntax

New-ImageChartArea [-Color <ChartColor>] [-Name] <String> [-SecondaryAxis] [-Value] <Double[]> [<CommonParameters>]
#
Parameter set: All Parameter Sets

Examples

Authored help example

Create area data

New-ImageChartArea -Name 'Sales' -Value 10,20 -Color Green

Area behind bars on a secondary axis

New-ImageChart -XLabel Q1, Q2, Q3 -SecondaryYTitle Margin -FilePath area.png { New-ImageChartBar -Name Revenue -Value 12, 18, 25; New-ImageChartArea -Name Margin -Value 21, 24, 28 -SecondaryAxis }

Parameters

-Color ChartColor optional
Fill color.
-Name String requiredposition: 0aliases: Label
Label for the area.
-SecondaryAxis SwitchParameter optional
Plot the area against the secondary (right) Y axis. Use New-ImageChart -SecondaryYTitle to name that axis.
-Value Double[] requiredposition: 1
Y values for the area.

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.

Outputs

ImagePlayground.ChartArea: Area chart definition.