# New-ImageChartArea

Creates area chart data item. Review available syntax, parameters, pipeline guidance, and reference details in ImagePlayground commands for ChartForgeX.

 Command  

**Module**

`imageplayground`

**Inputs**

 `None` 

**Outputs**

 `ImagePlayground.ChartArea` 

Creates area chart data item.

## Syntax

```
New-ImageChartArea
[-Color <ChartColor>]
[-Name] <String>
[-SecondaryAxis]
[-Value] <Double[]>
[<CommonParameters>]
```

 [#](#method-new-imagechartarea-chartcolor-string-switchparameter-double) 

Parameter set: `All Parameter Sets`

## Examples

### Create area data

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

### Area behind bars on a secondary axis

```powershell
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](https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_commonparameters).

## Outputs

ImagePlayground.ChartArea: Area chart definition.

<!-- PowerForge markdown artifact sha256:F5DFA92D12EF7A405C14E4C8BBBAE44D16E49C987DD390F71359F5CB39161020 -->
