Interface: LineElement<T, O>

    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

    NameType
    ctxCanvasRenderingContext2D
    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:1789LineElement - 图8 (opens new window)


    getCenterPoint

    getCenterPoint(useFinalPosition?): Object

    Parameters

    NameType
    useFinalPosition?boolean

    Returns

    Object

    NameType
    xnumber
    ynumber

    Inherited from

    .getCenterPoint

    Defined in

    index.esm.d.ts:1647 (opens new window)


    getProps

    getProps<P>(props, final?): Pick<T, P[number]>

    Type parameters

    NameType
    extends keyof T[]

    Parameters

    Returns

    Pick<T, P[number]>

    Inherited from

    Element.getProps

    Defined in


    getRange

    Optional getRange(axis): number

    Parameters

    NameType
    axis“x” | “y”

    Returns

    number

    Inherited from

    VisualElement.

    Defined in


    hasValue

    hasValue(): boolean

    Returns

    boolean

    Inherited from

    Element.hasValue

    Defined in

    element.d.ts:11LineElement - 图12 (opens new window)


    inRange

    inRange(mouseX, mouseY, useFinalPosition?): boolean

    Parameters

    NameType
    mouseXnumber
    mouseYnumber
    useFinalPosition?boolean

    Returns

    boolean

    Inherited from

    .inRange

    Defined in

    index.esm.d.ts:1644 (opens new window)


    inXRange

    inXRange(mouseX, useFinalPosition?): boolean

    Parameters

    NameType
    mouseXnumber
    useFinalPosition?boolean

    Returns

    boolean

    Inherited from

    Defined in

    index.esm.d.ts:1645LineElement - 图14 (opens new window)


    inYRange(mouseY, ): boolean

    Parameters

    NameType
    mouseYnumber
    useFinalPosition?boolean

    Returns

    boolean

    Inherited from

    VisualElement.

    Defined in


    interpolate

    interpolate(point, property): | Point[]

    Parameters

    Returns

    | Point[]

    Defined in

    index.esm.d.ts:1791LineElement - 图16 (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

    NameType
    ctxCanvasRenderingContext2D

    Returns

    boolean

    Defined in


    pathSegment

    pathSegment(ctx, segment, params): boolean

    Parameters

    NameType
    ctxCanvasRenderingContext2D
    segmentSegment
    paramsAnyObject

    Returns

    boolean

    Defined in


    tooltipPosition

    tooltipPosition(useFinalPosition?):

    Parameters

    NameType
    useFinalPosition?boolean

    Returns

    Point

    Inherited from

    Element.tooltipPosition

    Defined in


    updateControlPoints

    updateControlPoints(chartArea, indexAxis?): void

    Parameters

    NameType
    chartAreaChartArea
    indexAxis?“x” |

    Returns

    void

    Defined in