# ChartLegendItem (@salmonui/charts/chart)

> The ChartLegendItem interface of @salmonui/charts/chart.

Canonical: https://salmonui.dev/docs/reference/charts/chart/ChartLegendItem

```ts
import type { ChartLegendItem } from '@salmonui/charts/chart';
```

Entry index: https://salmonui.dev/docs/reference/charts/chart (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/charts/chart.md).

## Reference

Kind: interface

```ts
interface ChartLegendItem {
    readonly id: string;
    readonly label: string;
    readonly color: string;
    readonly hidden: boolean;
    readonly seriesId?: string | undefined;
    readonly index?: number | undefined;
}
```

Members (6):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `label` | `readonly label: string;` |  |  |
| `color` | `readonly color: string;` |  |  |
| `hidden` | `readonly hidden: boolean;` |  |  |
| `seriesId` | `readonly seriesId?: string \| undefined;` | optional | The series of a series or point item. |
| `index` | `readonly index?: number \| undefined;` | optional |  |
