---
id: "P:cAlgo.API.ChartPriceScaleEventArgs.ChartArea"
kind: "property"
type: "T:cAlgo.API.ChartPriceScaleEventArgs"
url: "https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartPriceScaleEventArgs/ChartArea/"
---

> Documentation index for agents: https://help.ctrader.com/ctrader-algo/llms.txt · machine index: https://help.ctrader.com/ctrader-algo/api.json

# ChartPriceScaleEventArgs.ChartArea

Member of [ChartPriceScaleEventArgs](https://help.ctrader.com/ctrader-algo/references/EventArgs/ChartPriceScaleEventArgs/index.md).

## ChartArea

Gets the chart area whose price scale changed. It is the chart itself for the main area.

Environments: Desktop supported · CLI supported · Cloud supported.

C#:

```csharp
public ChartArea ChartArea {get;}
```

Python:

```python
chartPriceScaleEventArgs.ChartArea: ChartArea
```

### Returns

`ChartArea` — 

Available since cAlgo.API 5.10.

### Examples

C#:

```csharp
foreach (var indicatorArea in Chart.IndicatorAreas)
{
    indicatorArea.PriceScaleChanged += args => Print("Indicator area price scale changed | Auto scale: {0} | Bottom Y: {1} | Top Y: {2}", args.ChartArea.IsAutoScaleEnabled, args.ChartArea.BottomY, args.ChartArea.TopY);
}
```

Python:

```python
for indicatorArea in api.Chart.IndicatorAreas:
    indicatorArea.PriceScaleChanged += lambda args: print(f"Indicator area price scale changed | Auto scale: {args.ChartArea.IsAutoScaleEnabled} | Bottom Y: {args.ChartArea.BottomY} | Top Y: {args.ChartArea.TopY}")
```

