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

# ILegendConfig

- 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/chartConfig.ts

**Signature:**

```typescript
export interface ILegendConfig 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [enabled?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.ilegendconfig/index.md#ilegendconfigenabled) |  | boolean | _(Optional)_ Indicates whether legend should be rendered or not. |
| [position?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.ilegendconfig/index.md#ilegendconfigposition) |  | [PositionType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.positiontype/index.md) | _(Optional)_ Where, relative to the chart, should the legend appear. |
| [responsive?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-charts/sdk-ui-charts.ilegendconfig/index.md#ilegendconfigresponsive) |  | boolean \| "autoPositionWithPopup" | _(Optional)_ Turns on responsive behavior. Legend items will be rendered horizontally on screens smaller than 767px. |

## Property details

### ILegendConfig.enabled

Indicates whether legend should be rendered or not.

**Signature:**

```typescript
enabled?: boolean;
```

### ILegendConfig.position

Where, relative to the chart, should the legend appear.

**Signature:**

```typescript
position?: PositionType;
```

### ILegendConfig.responsive

Turns on responsive behavior. Legend items will be rendered horizontally on screens smaller than 767px.

**Signature:**

```typescript
responsive?: boolean | "autoPositionWithPopup";
```
