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

# IGeoChartLegendConfig

- Package: [@gooddata/sdk-ui-geo](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/index.md)
- Kind: interface
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-geo/src/next/types/config/legend.ts
- Guides: [Geo chart](https://www.gooddata.ai/docs/gooddata-ui/latest/visualisations/geo-chart/index.md)

Legend configuration shared by GeoChart components.

**Signature:**

```typescript
export interface IGeoChartLegendConfig 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [enabled?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/sdk-ui-geo.igeochartlegendconfig/index.md#igeochartlegendconfigenabled) |  | boolean | _(Optional)_ Enables legend rendering. |
| [position?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/sdk-ui-geo.igeochartlegendconfig/index.md#igeochartlegendconfigposition) |  | [GeoLegendPosition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/sdk-ui-geo.geolegendposition/index.md) \| [LegacyGeoLegendPosition](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/sdk-ui-geo.legacygeolegendposition/index.md) | _(Optional)_ Legend position. `"auto"` picks a placement based on available space. Legacy edge-based values are still accepted for backward compatibility, but are deprecated and normalized to corner values: - `"top"` maps to `"top-right"` - `"right"` maps to `"top-right"` - `"bottom"` maps to `"bottom-right"` - `"left"` maps to `"top-left"` |
| [responsive?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-geo/sdk-ui-geo.igeochartlegendconfig/index.md#igeochartlegendconfigresponsive) |  | boolean \| "autoPositionWithPopup" | _(Optional)_ Responsive behavior for the geo legend. |

## Property details

### IGeoChartLegendConfig.enabled

Enables legend rendering.

**Signature:**

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

#### Default Value

true

### IGeoChartLegendConfig.position

Legend position. `"auto"` picks a placement based on available space. Legacy edge-based values are still accepted for backward compatibility, but are deprecated and normalized to corner values: - `"top"` maps to `"top-right"` - `"right"` maps to `"top-right"` - `"bottom"` maps to `"bottom-right"` - `"left"` maps to `"top-left"`

**Signature:**

```typescript
position?: GeoLegendPosition | LegacyGeoLegendPosition;
```

#### Default Value

"auto"

### IGeoChartLegendConfig.responsive

Responsive behavior for the geo legend.

**Signature:**

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

#### Default Value

false

#### Remarks

`true` enables responsive legend layout. The legacy `"autoPositionWithPopup"` value is kept for backward compatibility and preserves the automatic legend placement heuristics used in smaller containers.
