Interface: LegendElement

Hierarchy

Properties

active

Readonly active: boolean

Inherited from: void

Defined in: element.d.ts:6LegendElement - 图1 (opens new window)


bottom

bottom: number

Bottom edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.bottom

Defined in: layout.d.ts:41LegendElement - 图2 (opens new window)


fullSize

fullSize: boolean

if true, and the item is horizontal, then push vertical boxes down

Inherited from: LayoutItem.fullSize

Defined in: layout.d.ts:17LegendElement - 图3 (opens new window)


height

height: number

Height of item. Must be valid after update()

Inherited from: LayoutItem.height

Defined in: layout.d.ts:25LegendElement - 图4 (opens new window)


left

left: number

Left edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.left

Defined in: layout.d.ts:29LegendElement - 图5 (opens new window)


options

Readonly options: object

Type declaration:

Inherited from: void

Defined in: element.d.ts:7LegendElement - 图6 (opens new window)


position

position: LayoutPosition

The position of the item in the chart layout. Possible values are

Inherited from: LayoutItem.position

Defined in: layout.d.ts:9LegendElement - 图7 (opens new window)


right

right: number

Right edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.right

Defined in: layout.d.ts:37LegendElement - 图8 (opens new window)


top

top: number

Top edge of the item. Set by layout system and cannot be used in update

Inherited from: LayoutItem.top

Defined in: layout.d.ts:33LegendElement - 图9 (opens new window)


weight

weight: number

The weight used to sort the item. Higher weights are further away from the chart area

Inherited from: LayoutItem.weight

Defined in: layout.d.ts:13LegendElement - 图10 (opens new window)


width

width: number

Width of item. Must be valid after update()

Inherited from: LayoutItem.width

Defined in: layout.d.ts:21LegendElement - 图11 (opens new window)


x

Readonly x: number

Inherited from: void

Defined in: element.d.ts:4LegendElement - 图12 (opens new window)


y

Readonly y: number

Inherited from: void

Defined in: element.d.ts:5LegendElement - 图13 (opens new window)

Methods

beforeLayout

OptionalbeforeLayout(): void

Called before the layout process starts

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:46LegendElement - 图14 (opens new window)


draw

draw(chartArea: ChartArea): void

Draws the element

Parameters:

NameType
chartAreaChartArea

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:50LegendElement - 图15 (opens new window)


getPadding

OptionalgetPadding(): ChartArea

Returns an object with padding on the edges

Returns: ChartArea

Inherited from: LayoutItem

Defined in: layout.d.ts:54LegendElement - 图16 (opens new window)


getProps

getProps<P>(props: [P], final?: boolean): Pick<{}, P>

Type parameters:

NameType
Pnever

Parameters:

NameType
props[P]
final?boolean

Returns: Pick<{}, P>

Inherited from: void

Defined in: element.d.ts:11LegendElement - 图17 (opens new window)

getProps<P, P2>(props: [P, P2], final?: boolean): Pick<{}, P | P2>

Type parameters:

NameType
Pnever
P2never

Parameters:

NameType
props[P, P2]
final?boolean

Returns: Pick<{}, P | P2>

Inherited from: void

Defined in: element.d.ts:12LegendElement - 图18 (opens new window)

getProps<P, P2, P3>(props: [P, P2, P3], final?: boolean): Pick<{}, P | P2 | P3>

Type parameters:

NameType
Pnever
P2never
P3never

Parameters:

NameType
props[P, P2, P3]
final?boolean

Returns: Pick<{}, P | P2 | P3>

Inherited from: void

Defined in: element.d.ts:13LegendElement - 图19 (opens new window)

getProps<P, P2, P3, P4>(props: [P, P2, P3, P4], final?: boolean): Pick<{}, P | P2 | P3 | P4>

Type parameters:

NameType
Pnever
P2never
P3never
P4never

Parameters:

NameType
props[P, P2, P3, P4]
final?boolean

Returns: Pick<{}, P | P2 | P3 | P4>

Inherited from: void

Defined in: element.d.ts:17LegendElement - 图20 (opens new window)

getProps<P, P2, P3, P4, P5>(props: [P, P2, P3, P4, P5], final?: boolean): Pick<{}, P | P2 | P3 | P4 | P5>

Type parameters:

NameType
Pnever
P2never
P3never
P4never
P5never

Parameters:

NameType
props[P, P2, P3, P4, P5]
final?boolean

Returns: Pick<{}, P | P2 | P3 | P4 | P5>

Inherited from: void

Defined in: element.d.ts:21LegendElement - 图21 (opens new window)

getProps(props: never[], final?: boolean): object

Parameters:

NameType
propsnever[]
final?boolean

Returns: object

Inherited from: void

Defined in: element.d.ts:25LegendElement - 图22 (opens new window)


hasValue

hasValue(): boolean

Returns: boolean

Inherited from: void

Defined in: element.d.ts:10LegendElement - 图23 (opens new window)


isHorizontal

isHorizontal(): boolean

returns true if the layout item is horizontal (ie. top or bottom)

Returns: boolean

Inherited from: LayoutItem

Defined in: layout.d.ts:58LegendElement - 图24 (opens new window)


tooltipPosition

tooltipPosition(useFinalPosition?: boolean): Point

Parameters:

NameType
useFinalPosition?boolean

Returns: Point

Inherited from: void

Defined in: element.d.ts:9LegendElement - 图25 (opens new window)


update

update(width: number, height: number, margins?: ChartArea): void

Takes two parameters: width and height.

Parameters:

NameType
widthnumber
heightnumber
margins?ChartArea

Returns: void

Inherited from: LayoutItem

Defined in: layout.d.ts:64LegendElement - 图26 (opens new window)