Interface: LineOptions

Hierarchy

Properties

backgroundColor

backgroundColor: Color

Inherited from

CommonElementOptions.backgroundColor

Defined in

index.esm.d.ts:1690LineOptions - 图1 (opens new window)


borderCapStyle

borderCapStyle: CanvasLineCap

Line cap style. See MDN.

default ‘butt’

Defined in

index.esm.d.ts:1767LineOptions - 图2 (opens new window)


borderColor

borderColor: Color

Inherited from

CommonElementOptions.borderColor

Defined in

index.esm.d.ts:1689LineOptions - 图3 (opens new window)


borderDash

borderDash: number[]

Line dash. See MDN.

default []

Defined in

index.esm.d.ts:1772LineOptions - 图4 (opens new window)


borderDashOffset

borderDashOffset: number

Line dash offset. See MDN.

default 0.0

Defined in

index.esm.d.ts:1777LineOptions - 图5 (opens new window)


borderJoinStyle

borderJoinStyle: CanvasLineJoin

Line join style. See MDN.

default ‘miter’

Defined in

index.esm.d.ts:1782LineOptions - 图6 (opens new window)


borderWidth

borderWidth: number

Inherited from

CommonElementOptions.borderWidth

Defined in

index.esm.d.ts:1688LineOptions - 图7 (opens new window)


capBezierPoints

capBezierPoints: boolean

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

default true

Defined in

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


cubicInterpolationMode

cubicInterpolationMode: "default" | "monotone"

Interpolation mode to apply.

default ‘default’

Defined in

index.esm.d.ts:1792LineOptions - 图9 (opens new window)


fill

fill: FillTarget | ComplexFillTarget

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

index.esm.d.ts:1806LineOptions - 图10 (opens new window)


segment

segment: Object

Type declaration

NameType
backgroundColorScriptable<Color, ScriptableLineSegmentContext>
borderCapStyleScriptable<CanvasLineCap, ScriptableLineSegmentContext>
borderColorScriptable<Color, ScriptableLineSegmentContext>
borderDashScriptable<number[], ScriptableLineSegmentContext>
borderDashOffsetScriptable<number, ScriptableLineSegmentContext>
borderJoinStyleScriptable<CanvasLineJoin, ScriptableLineSegmentContext>
borderWidthScriptable<number, ScriptableLineSegmentContext>

Defined in

index.esm.d.ts:1812LineOptions - 图11 (opens new window)


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:1810LineOptions - 图12 (opens new window)


stepped

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

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

default false

Defined in

index.esm.d.ts:1802LineOptions - 图13 (opens new window)


tension

tension: number

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

default 0

Defined in

index.esm.d.ts:1797LineOptions - 图14 (opens new window)