- Interface: LegendElement
- Hierarchy
- Properties
- Methods
- beforeLayout
- draw
- getPadding
- getProps
- Type parameters
- Parameters
- Returns
- Inherited from
- Defined in
- Type parameters
- Parameters
- Returns
- Inherited from
- Defined in
- Type parameters
- Parameters
- Returns
- Inherited from
- Defined in
- Type parameters
- Parameters
- Returns
- Inherited from
- Defined in
- Type parameters
- Parameters
- Returns
- Inherited from
- Defined in
- Parameters
- Returns
- Inherited from
- Defined in
- hasValue
- isHorizontal
- tooltipPosition
- update
Interface: LegendElement
Hierarchy
-
↳
LegendElement
Properties
active
• Readonly
active: boolean
Inherited from
Element.active
Defined in
element.d.ts:6 (opens new window)
bottom
• bottom: number
Bottom edge of the item. Set by layout system and cannot be used in update
Inherited from
Defined in
layout.d.ts:41 (opens new window)
fullSize
• fullSize: boolean
if true, and the item is horizontal, then push vertical boxes down
Inherited from
Defined in
layout.d.ts:17 (opens new window)
height
• height: number
Height of item. Must be valid after update()
Inherited from
Defined in
layout.d.ts:25 (opens new window)
left
• left: number
Left edge of the item. Set by layout system and cannot be used in update
Inherited from
Defined in
layout.d.ts:29 (opens new window)
options
• Readonly
options: Object
Inherited from
Element.options
Defined in
element.d.ts:7 (opens new window)
position
• position: LayoutPosition
The position of the item in the chart layout. Possible values are
Inherited from
Defined in
layout.d.ts:9 (opens new window)
right
• right: number
Right edge of the item. Set by layout system and cannot be used in update
Inherited from
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
Inherited from
Defined in
layout.d.ts:33 (opens new window)
weight
• weight: number
The weight used to sort the item. Higher weights are further away from the chart area
Inherited from
Defined in
layout.d.ts:13 (opens new window)
width
• width: number
Width of item. Must be valid after update()
Inherited from
Defined in
layout.d.ts:21 (opens new window)
x
• Readonly
x: number
Inherited from
Element.x
Defined in
element.d.ts:4 (opens new window)
y
• Readonly
y: number
Inherited from
Element.y
Defined in
element.d.ts:5 (opens new window)
Methods
beforeLayout
▸ Optional
beforeLayout(): void
Called before the layout process starts
Returns
void
Inherited from
Defined in
layout.d.ts:46 (opens new window)
draw
▸ draw(chartArea
): void
Draws the element
Parameters
Name | Type |
---|---|
chartArea | ChartArea |
Returns
void
Inherited from
Defined in
layout.d.ts:50 (opens new window)
getPadding
▸ Optional
getPadding(): ChartArea
Returns an object with padding on the edges
Returns
Inherited from
Defined in
layout.d.ts:54 (opens new window)
getProps
▸ getProps<P
>(props
, final?
): Pick
<Object
, P
>
Type parameters
Name | Type |
---|---|
P | extends never |
Parameters
Name | Type |
---|---|
props | [P ] |
final? | boolean |
Returns
Pick
<Object
, P
>
Inherited from
Element.getProps
Defined in
element.d.ts:11 (opens new window)
▸ getProps<P
, P2
>(props
, final?
): Pick
<Object
, P
| P2
>
Type parameters
Name | Type |
---|---|
P | extends never |
P2 | extends never |
Parameters
Name | Type |
---|---|
props | [P , P2 ] |
final? | boolean |
Returns
Pick
<Object
, P
| P2
>
Inherited from
Element.getProps
Defined in
element.d.ts:12 (opens new window)
▸ getProps<P
, P2
, P3
>(props
, final?
): Pick
<Object
, P
| P2
| P3
>
Type parameters
Name | Type |
---|---|
P | extends never |
P2 | extends never |
P3 | extends never |
Parameters
Name | Type |
---|---|
props | [P , P2 , P3 ] |
final? | boolean |
Returns
Pick
<Object
, P
| P2
| P3
>
Inherited from
Element.getProps
Defined in
element.d.ts:13 (opens new window)
▸ getProps<P
, P2
, P3
, P4
>(props
, final?
): Pick
<Object
, P
| P2
| P3
| P4
>
Type parameters
Name | Type |
---|---|
P | extends never |
P2 | extends never |
P3 | extends never |
P4 | extends never |
Parameters
Name | Type |
---|---|
props | [P , P2 , P3 , P4 ] |
final? | boolean |
Returns
Pick
<Object
, P
| P2
| P3
| P4
>
Inherited from
Element.getProps
Defined in
element.d.ts:17 (opens new window)
▸ getProps<P
, P2
, P3
, P4
, P5
>(props
, final?
): Pick
<Object
, P
| P2
| P3
| P4
| P5
>
Type parameters
Name | Type |
---|---|
P | extends never |
P2 | extends never |
P3 | extends never |
P4 | extends never |
P5 | extends never |
Parameters
Name | Type |
---|---|
props | [P , P2 , P3 , P4 , P5 ] |
final? | boolean |
Returns
Pick
<Object
, P
| P2
| P3
| P4
| P5
>
Inherited from
Element.getProps
Defined in
element.d.ts:21 (opens new window)
▸ getProps(props
, final?
): Object
Parameters
Name | Type |
---|---|
props | never [] |
final? | boolean |
Returns
Object
Inherited from
Element.getProps
Defined in
element.d.ts:25 (opens new window)
hasValue
▸ hasValue(): boolean
Returns
boolean
Inherited from
Element.hasValue
Defined in
element.d.ts:10 (opens new window)
isHorizontal
▸ isHorizontal(): boolean
returns true if the layout item is horizontal (ie. top or bottom)
Returns
boolean
Inherited from
Defined in
layout.d.ts:58 (opens new window)
tooltipPosition
▸ tooltipPosition(useFinalPosition?
): Point
Parameters
Name | Type |
---|---|
useFinalPosition? | boolean |
Returns
Inherited from
Element.tooltipPosition
Defined in
element.d.ts:9 (opens new window)
update
▸ update(width
, height
, margins?
): void
Takes two parameters: width and height.
Parameters
Name | Type |
---|---|
width | number |
height | number |
margins? | ChartArea |
Returns
void