> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IChartCallbacks

- Package: [@gooddata/sdk-ui-charts](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-charts/src/interfaces/chartProps.ts

Defines callbacks to execute for different events.

**Signature:**

```typescript
export interface IChartCallbacks extends IVisualizationCallbacks 
```
**Extends:** [IVisualizationCallbacks](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui/sdk-ui.ivisualizationcallbacks/index.md)

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [onLegendReady?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.ichartcallbacks/index.md#ichartcallbacksonlegendready) |  | [OnLegendReady](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.onlegendready/index.md) | _(Optional)_ Called when legend is rendered. |

## Property details

### IChartCallbacks.onLegendReady

Called when legend is rendered.

**Signature:**

```typescript
onLegendReady?: OnLegendReady;
```
