Interface: LayoutItem
• bottom: number
Bottom edge of the item. Set by layout system and cannot be used in update
Defined in
fullSize
• fullSize: boolean
if true, and the item is horizontal, then push vertical boxes down
Defined in
layout.d.ts:17 (opens new window)
height
• height: number
Height of item. Must be valid after update()
Defined in
left
• left: number
Left edge of the item. Set by layout system and cannot be used in update
Defined in
layout.d.ts:29 (opens new window)
• position:
Defined in
right
• right: number
Right edge of the item. Set by layout system and cannot be used in update
Defined in
layout.d.ts:37 (opens new window)
top
• top: number
Top edge of the item. Set by layout system and cannot be used in update
Defined in
weight
• weight: number
The weight used to sort the item. Higher weights are further away from the chart area
Defined in
layout.d.ts:13 (opens new window)
• width: number
Width of item. Must be valid after update()
Defined in
layout.d.ts:21 (opens new window)
beforeLayout
▸ beforeLayout(): void
Called before the layout process starts
Returns
Defined in
layout.d.ts:46 (opens new window)
draw
▸ draw(chartArea
): void
Draws the element
Parameters
Returns
void
Defined in
getPadding
▸ Optional
getPadding():
Returns an object with padding on the edges
Returns
Defined in
▸ isHorizontal(): boolean
returns true if the layout item is horizontal (ie. top or bottom)
Returns
Defined in
layout.d.ts:58 (opens new window)
update
▸ update(width
, height
, margins?
): void
Takes two parameters: width and height.
Parameters
Name | Type |
---|---|
width | number |
height | number |