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

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

# ChartScrollEventArgs.ChartArea

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

## ChartArea

Gets the chart area.

Environments: Desktop supported · CLI supported · Cloud not supported.

- Cloud: Never raised in the cloud: the events that pass it never fire there (ChartArea.ScrollChanged).

C#:

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

Python:

```python
chartScrollEventArgs.ChartArea: ChartArea
```

### Returns

`ChartArea` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Chart.ScrollChanged += OnChartScrollChanged;
}

private void OnChartScrollChanged(ChartScrollEventArgs args)
{
    Print("Visible price range: {0} - {1}", args.ChartArea.BottomY, args.ChartArea.TopY);
}
```

Python:

```python
def on_start(self):
    api.Chart.ScrollChanged += self.on_chart_scroll_changed

def on_chart_scroll_changed(self, args):
    api.Print(f"Visible price range: {args.ChartArea.BottomY} - {args.ChartArea.TopY}")
```

