Interface: LineOptions

    Properties

    backgroundColor:

    Inherited from

    .backgroundColor

    Defined in

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


    borderCapStyle

    borderCapStyle: CanvasLineCap

    Line cap style. See MDN.

    default ‘butt’

    Defined in


    borderColor

    borderColor:

    Inherited from

    .borderColor

    Defined in

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


    borderDash

    borderDash: number[]

    Line dash. See MDN.

    default []

    Defined in


    borderDashOffset: number

    default 0.0

    Defined in

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


    borderJoinStyle

    borderJoinStyle: CanvasLineJoin

    Line join style. See MDN.

    default ‘miter’

    Defined in


    borderWidth

    borderWidth: number

    Inherited from

    CommonElementOptions.

    Defined in


    capBezierPoints

    capBezierPoints: boolean

    true to keep Bézier control inside the chart, false for no restriction.

    default true

    Defined in

    index.esm.d.ts:1793LineOptions - 图8 (opens new window)


    cubicInterpolationMode: | "monotone"

    Interpolation mode to apply.

    default ‘default’

    Defined in


    fill

    fill: FillTarget |

    Both line and radar charts support a fill option on the dataset object which can be used to create area between two datasets or a dataset and a boundary, i.e. the scale origin, start or end

    Defined in


    segment

    segment: Object

    Type declaration

    Defined in


    spanGaps

    spanGaps: number | boolean

    If true, lines will be drawn between points with no or null data. If false, points with NaN data will create a break in the line. Can also be a number specifying the maximum gap length to span. The unit of the value depends on the scale used.

    Defined in

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


    stepped: boolean | "middle" | "before" | "after"

    true to show the line as a stepped line (tension will be ignored).

    default false

    Defined in


    tension

    tension: number

    Bézier curve tension (0 for no Bézier curves).

    0

    Defined in

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