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

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

# ChartColorEventArgs.Chart

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

## Chart

Gets the chart.

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

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

C#:

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

Python:

```python
chartColorEventArgs.Chart: Chart
```

### Returns

`Chart` — 

### Examples

C#:

```csharp
protected override void OnStart()
{
    Chart.ColorsChanged += OnChartColorsChanged;
}

private void OnChartColorsChanged(ChartColorEventArgs args)
{
    Print("Colors changed on chart {0} {1}", args.Chart.SymbolName, args.Chart.TimeFrame);
}
```

Python:

```python
def on_start(self):
    api.Chart.ColorsChanged += self.on_chart_colors_changed

def on_chart_colors_changed(self, args):
    api.Print(f"Colors changed on chart {args.Chart.SymbolName} {args.Chart.TimeFrame}")
```

