# SiCustomLegendComponent documentation

**Kind:** component

**Selector:** `si-custom-legend`

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

```
component SiCustomLegendComponent
```

#### Input Properties

| Name | Type | Description |
| --- | --- | --- |
| [customLegend](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L27-L27>) | `CustomLegend \| undefined` | The data and configuration rendered by the custom legend. |
| [subTitle](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L31-L31>) | `string \| undefined` | The legend subtitle. |
| [subTitleColor](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L35-L35>) | `string \| undefined` | The color of the legend subtitle. |
| [textColor](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L37-L37>) | `string \| undefined` | The color of the legend text. |
| [title](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L29-L29>) | `string \| undefined` | The legend title. |
| [titleColor](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L33-L33>) | `string \| undefined` | The color of the legend title. |

#### Output Properties

| Name | Type | Description |
| --- | --- | --- |
| [legendClickEvent](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L41-L41>) | `CustomLegendItem` | The event emitted when a legend is clicked. |
| [legendHoverEndEvent](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L45-L45>) | `CustomLegendItem` | The event emitted when the mouse leaves a legend. |
| [legendHoverStartEvent](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L43-L43>) | `CustomLegendItem` | The event emitted when the mouse enters a legend. |
| [legendIconClickEvent](<https://github.com/siemens/element/blob/main/projects/charts-ng/custom-legend/si-custom-legend.component.ts#L39-L39>) | `CustomLegendItem` | The event emitted when a legend icon is clicked. |

### Types Documentation

### [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` |  |

### [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` |  |
