# CustomLegend Type documentation

## TypeScript declaration

### [CustomLegend](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L6-L20>)

**Kind:** interface

```
import type { CustomLegend } from '@siemens/charts-ng/custom-legend';
```

```
interface CustomLegend
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [customLegends](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L7-L16>) | `[{ list: CustomLegendItem[]; unit?: string; }, { list: CustomLegendItem[]; unit?: string; }]` |  |
| [gridIndex](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L19-L19>) (optional) | `number` |  |
| [legendAxis](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L17-L17>) | `string` |  |
| [top](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L18-L18>) (optional) | `string \| number` |  |

### Types Documentation

### [CustomLegendItem](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L22-L30>)

**Kind:** interface

```
import type { CustomLegendItem } from '@siemens/charts-ng/custom-legend';
```

```
interface CustomLegendItem
```

#### Properties

| Name | Type | Description |
| --- | --- | --- |
| [alternativeNaming](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L24-L24>) (optional) | `boolean` |  |
| [color](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L26-L26>) (optional) | `string` |  |
| [displayName](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L25-L25>) (optional) | `string` |  |
| [name](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L23-L23>) | `string` |  |
| [selected](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L27-L27>) | `boolean` |  |
| [symbol](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L29-L29>) (optional) | `string` |  |
| [tooltip](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.interface.ts#L28-L28>) (optional) | `string` |  |
