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

# OnLegendReady

- Package: [@gooddata/sdk-ui-charts](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/index.md)
- Kind: type-alias
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-charts/src/interfaces/chartProps.ts
- Guides: [onLegendReady](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/interactivity/on-legend-ready/index.md)

Callback to be called once the legend is rendered.

**Signature:**

```typescript
export type OnLegendReady = (data: ILegendData) => void;
```
**References:** [ILegendData](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.ilegenddata/index.md)
