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

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

# ChartKeyboardEventArgs.Chart

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

## Chart

The chart that the event/callback occurred

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

- CLI: Never raised in the CLI: the events that pass it never fire there (Chart.KeyDown).
- Cloud: Never raised in the cloud: the events that pass it never fire there (Chart.KeyDown).

C#:

```csharp
public Chart Chart {get;}
```

Python:

```python
chartKeyboardEventArgs.Chart: Chart
```

### Returns

`Chart` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Chart.KeyDown += OnChartKeyDown;
}

private void OnChartKeyDown(ChartKeyboardEventArgs args)
{
    Print("Key {0} pressed on chart {1} {2}", args.Key, args.Chart.SymbolName, args.Chart.TimeFrame);
}
```

Python:

```python
def on_start(self):
    api.Chart.KeyDown += self.on_chart_key_down

def on_chart_key_down(self, args):
    api.Print(f"Key {args.Key} pressed on chart {args.Chart.SymbolName} {args.Chart.TimeFrame}")
```

