Interface: LineElement<T, O>
-
↳
LineElement
• Readonly
active: boolean
Inherited from
Element.active
Defined in
options
• Readonly
options: O
Inherited from
Element.options
Defined in
points
• points: []
Defined in
segments
• Readonly
segments: []
Defined in
x
• Readonly
x: number
Inherited from
Element.x
Defined in
y
• Readonly
y: number
Inherited from
Element.y
Defined in
draw
▸ draw(ctx
, area?
): void
Parameters
Name | Type |
---|---|
ctx | CanvasRenderingContext2D |
area? | ChartArea |
Returns
void
Inherited from
.draw
Defined in
index.esm.d.ts:1643 (opens new window)
▸ first(): false
|
Returns
Defined in
index.esm.d.ts:1789 (opens new window)
getCenterPoint
▸ getCenterPoint(useFinalPosition?
): Object
Parameters
Name | Type |
---|---|
useFinalPosition? | boolean |
Returns
Object
Name | Type |
---|---|
x | number |
y | number |
Inherited from
Defined in
index.esm.d.ts:1647 (opens new window)
getProps
▸ getProps<P
>(props
, final?
): Pick
<T
, P
[number
]>
Type parameters
Name | Type |
---|---|
extends keyof T [] |
Parameters
Returns
Pick
<T
, P
[number
]>
Inherited from
Element.getProps
Defined in
getRange
▸ Optional
getRange(axis
): number
Parameters
Name | Type |
---|---|
axis | “x” | “y” |
Returns
number
Inherited from
Defined in
hasValue
▸ hasValue(): boolean
Returns
boolean
Inherited from
Element.hasValue
Defined in
element.d.ts:11 (opens new window)
inRange
▸ inRange(mouseX
, mouseY
, useFinalPosition?
): boolean
Parameters
Name | Type |
---|---|
mouseX | number |
mouseY | number |
useFinalPosition? | boolean |
Returns
boolean
Inherited from
Defined in
index.esm.d.ts:1644 (opens new window)
inXRange
▸ inXRange(mouseX
, useFinalPosition?
): boolean
Parameters
Name | Type |
---|---|
mouseX | number |
useFinalPosition? | boolean |
Returns
boolean
Inherited from
Defined in
index.esm.d.ts:1645 (opens new window)
▸ inYRange(mouseY
, ): boolean
Parameters
Name | Type |
---|---|
mouseY | number |
useFinalPosition? | boolean |
Returns
boolean
Inherited from
Defined in
interpolate
▸ interpolate(point
, property
): | Point[]
Parameters
Returns
| Point[]
Defined in
index.esm.d.ts:1791 (opens new window)
last
▸ last(): false
| Point
Returns
false
| Point
Defined in
index.esm.d.ts:1790 (opens new window)
path
▸ path(ctx
): boolean
Parameters
Name | Type |
---|---|
ctx | CanvasRenderingContext2D |
Returns
boolean
Defined in
pathSegment
▸ pathSegment(ctx
, segment
, params
): boolean
Parameters
Name | Type |
---|---|
ctx | CanvasRenderingContext2D |
segment | Segment |
params | AnyObject |
Returns
boolean
Defined in
tooltipPosition
▸ tooltipPosition(useFinalPosition?
):
Parameters
Name | Type |
---|---|
useFinalPosition? | boolean |
Returns
Inherited from
Element.tooltipPosition
Defined in
updateControlPoints
▸ updateControlPoints(chartArea
, indexAxis?
): void
Parameters
Name | Type |
---|---|
chartArea | ChartArea |
indexAxis? | “x” | |
Returns
void