Command
New-ImageChartArea
Creates area chart data item.
Syntax
New-ImageChartArea [-Color <ChartColor>] [-Name] <String> [-SecondaryAxis] [-Value] <Double[]> [<CommonParameters>]#Parameter set:
All Parameter SetsExamples
Create area data
New-ImageChartArea -Name 'Sales' -Value 10,20 -Color GreenArea 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
- Fill color.
- -Name String
- Label for the area.
- -SecondaryAxis SwitchParameter
- Plot the area against the secondary (right) Y axis. Use New-ImageChart -SecondaryYTitle to name that axis.
- -Value Double[]
- 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.