[@wago/wdx-schema](../README.md) / [Exports](../modules.md) / [WDX](../modules/WDX.md) / [Schema](../modules/WDX.Schema.md) / [Model](../modules/WDX.Schema.Model.md) / [Chart](../modules/WDX.Schema.Model.Chart.md) / Legend

# Class: Legend

[Model](../modules/WDX.Schema.Model.md).[Chart](../modules/WDX.Schema.Model.Chart.md).Legend

## Table of contents

### Constructors

- [constructor](WDX.Schema.Model.Chart.Legend.md#constructor)

### Properties

- [align](WDX.Schema.Model.Chart.Legend.md#align)
- [chart](WDX.Schema.Model.Chart.Legend.md#chart)
- [display](WDX.Schema.Model.Chart.Legend.md#display)
- [fullSize](WDX.Schema.Model.Chart.Legend.md#fullsize)
- [id](WDX.Schema.Model.Chart.Legend.md#id)
- [labels](WDX.Schema.Model.Chart.Legend.md#labels)
- [maxHeight](WDX.Schema.Model.Chart.Legend.md#maxheight)
- [maxWidth](WDX.Schema.Model.Chart.Legend.md#maxwidth)
- [position](WDX.Schema.Model.Chart.Legend.md#position)
- [reverse](WDX.Schema.Model.Chart.Legend.md#reverse)
- [rtl](WDX.Schema.Model.Chart.Legend.md#rtl)
- [title](WDX.Schema.Model.Chart.Legend.md#title)
- [uuid](WDX.Schema.Model.Chart.Legend.md#uuid)

## Constructors

### constructor

• **new Legend**(): [`Legend`](WDX.Schema.Model.Chart.Legend.md)

#### Returns

[`Legend`](WDX.Schema.Model.Chart.Legend.md)

## Properties

### align

• **align**: [`HoriziontalAlign`](../enums/WDX.Schema.Model.Chart.HoriziontalAlign.md)

Alignment of the legend.

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:53

___

### chart

• **chart**: [`Chart`](WDX.Schema.Model.Chart.Chart.md)

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:115

___

### display

• **display**: `boolean`

Is the legend shown?

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:34

___

### fullSize

• **fullSize**: `boolean`

Marks that this box should take the full width/height of the canvas (moving
other boxes). This is unlikely to need to be changed in day-to-day use.

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:82

___

### id

• `Optional` **id**: `number`

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:18

___

### labels

• **labels**: [`LegendLabel`](WDX.Schema.Model.Chart.LegendLabel.md)

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:106

___

### maxHeight

• `Optional` **maxHeight**: `number`

Maximum height of the legend, in pixels

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:62

___

### maxWidth

• `Optional` **maxWidth**: `number`

Maximum width of the legend, in pixels

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:71

___

### position

• **position**: [`LegendPosition`](../enums/WDX.Schema.Model.Chart.LegendPosition.md)

Position of the legend.

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:43

___

### reverse

• **reverse**: `boolean`

Legend will show datasets in reverse order.

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:100

___

### rtl

• **rtl**: `boolean`

true for rendering the legends from right to left.

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:91

___

### title

• **title**: [`Title`](WDX.Schema.Model.Chart.Title.md)

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:102

___

### uuid

• **uuid**: `string`

#### Defined in

src/WDX/Schema/Model/Chart/Legend.ts:24
