Interface: LayoutItem

Hierarchy

Properties

bottom

bottom: number

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

Defined in: layout.d.ts:41LayoutItem - 图1 (opens new window)


fullSize

fullSize: boolean

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

Defined in: layout.d.ts:17LayoutItem - 图2 (opens new window)


height

height: number

Height of item. Must be valid after update()

Defined in: layout.d.ts:25LayoutItem - 图3 (opens new window)


left

left: number

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

Defined in: layout.d.ts:29LayoutItem - 图4 (opens new window)


position

position: LayoutPosition

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

Defined in: layout.d.ts:9LayoutItem - 图5 (opens new window)


right

right: number

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

Defined in: layout.d.ts:37LayoutItem - 图6 (opens new window)


top

top: number

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

Defined in: layout.d.ts:33LayoutItem - 图7 (opens new window)


weight

weight: number

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

Defined in: layout.d.ts:13LayoutItem - 图8 (opens new window)


width

width: number

Width of item. Must be valid after update()

Defined in: layout.d.ts:21LayoutItem - 图9 (opens new window)

Methods

beforeLayout

OptionalbeforeLayout(): void

Called before the layout process starts

Returns: void

Defined in: layout.d.ts:46LayoutItem - 图10 (opens new window)


draw

draw(chartArea: ChartArea): void

Draws the element

Parameters:

NameType
chartAreaChartArea

Returns: void

Defined in: layout.d.ts:50LayoutItem - 图11 (opens new window)


getPadding

OptionalgetPadding(): ChartArea

Returns an object with padding on the edges

Returns: ChartArea

Defined in: layout.d.ts:54LayoutItem - 图12 (opens new window)


isHorizontal

isHorizontal(): boolean

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

Returns: boolean

Defined in: layout.d.ts:58LayoutItem - 图13 (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

Defined in: layout.d.ts:64LayoutItem - 图14 (opens new window)