Interface: LineControllerDatasetOptions

Hierarchy

Properties

animation

animation: false | AnimationSpec<line> & { onComplete?: (event: AnimationEvent) => void ; onProgress?: (event: AnimationEvent) => void }

Inherited from: void

Defined in: index.esm.d.ts:1527LineControllerDatasetOptions - 图1 (opens new window)


animations

animations: AnimationsSpec<line>

Inherited from: void

Defined in: index.esm.d.ts:1537LineControllerDatasetOptions - 图2 (opens new window)


backgroundColor

backgroundColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1582LineControllerDatasetOptions - 图3 (opens new window)


borderCapStyle

borderCapStyle: Scriptable<CanvasLineCap, ScriptableContext<line>>

Line cap style. See MDN.

default ‘butt’

Inherited from: void

Defined in: index.esm.d.ts:1638LineControllerDatasetOptions - 图4 (opens new window)


borderColor

borderColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1581LineControllerDatasetOptions - 图5 (opens new window)


borderDash

borderDash: Scriptable<number[], ScriptableContext<line>>

Line dash. See MDN.

default []

Inherited from: void

Defined in: index.esm.d.ts:1643LineControllerDatasetOptions - 图6 (opens new window)


borderDashOffset

borderDashOffset: Scriptable<number, ScriptableContext<line>>

Line dash offset. See MDN.

default 0.0

Inherited from: void

Defined in: index.esm.d.ts:1648LineControllerDatasetOptions - 图7 (opens new window)


borderJoinStyle

borderJoinStyle: Scriptable<CanvasLineJoin, ScriptableContext<line>>

Line join style. See MDN.

default ‘miter’

Inherited from: void

Defined in: index.esm.d.ts:1653LineControllerDatasetOptions - 图8 (opens new window)


borderWidth

borderWidth: Scriptable<number, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1580LineControllerDatasetOptions - 图9 (opens new window)


capBezierPoints

capBezierPoints: Scriptable<boolean, ScriptableContext<line>>

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

default true

Inherited from: void

Defined in: index.esm.d.ts:1658LineControllerDatasetOptions - 图10 (opens new window)


clip

clip: number | ChartArea

How to clip relative to chartArea. Positive value allows overflow, negative value clips that many pixels inside chartArea. 0 = clip at chartArea. Clipping can also be configured per side: clip: {left: 5, top: false, right: -2, bottom: 0}

Inherited from: ControllerDatasetOptions.clip

Defined in: index.esm.d.ts:58LineControllerDatasetOptions - 图11 (opens new window)


cubicInterpolationMode

cubicInterpolationMode: Scriptable<default | monotone, ScriptableContext<line>>

Interpolation mode to apply.

default ‘default’

Inherited from: void

Defined in: index.esm.d.ts:1663LineControllerDatasetOptions - 图12 (opens new window)


hidden

hidden: boolean

Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.

default false

Inherited from: ControllerDatasetOptions.hidden

Defined in: index.esm.d.ts:76LineControllerDatasetOptions - 图13 (opens new window)


hoverBackgroundColor

hoverBackgroundColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1588LineControllerDatasetOptions - 图14 (opens new window)


hoverBorderCapStyle

hoverBorderCapStyle: Scriptable<CanvasLineCap, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1677LineControllerDatasetOptions - 图15 (opens new window)


hoverBorderColor

hoverBorderColor: Scriptable<Color, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1587LineControllerDatasetOptions - 图16 (opens new window)


hoverBorderDash

hoverBorderDash: Scriptable<number[], ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1678LineControllerDatasetOptions - 图17 (opens new window)


hoverBorderDashOffset

hoverBorderDashOffset: Scriptable<number, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1679LineControllerDatasetOptions - 图18 (opens new window)


hoverBorderJoinStyle

hoverBorderJoinStyle: Scriptable<CanvasLineJoin, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1680LineControllerDatasetOptions - 图19 (opens new window)


hoverBorderWidth

hoverBorderWidth: Scriptable<number, ScriptableContext<line>>

Inherited from: void

Defined in: index.esm.d.ts:1586LineControllerDatasetOptions - 图20 (opens new window)


indexAxis

indexAxis: x | y

The base axis of the chart. ‘x’ for vertical charts and ‘y’ for horizontal charts.

default ‘x’

Inherited from: ControllerDatasetOptions.indexAxis

Defined in: index.esm.d.ts:54LineControllerDatasetOptions - 图21 (opens new window)


label

label: string

The label for the dataset which appears in the legend and tooltips.

Inherited from: ControllerDatasetOptions.label

Defined in: index.esm.d.ts:62LineControllerDatasetOptions - 图22 (opens new window)


normalized

normalized: boolean

Chart.js is fastest if you provide data with indices that are unique, sorted, and consistent across datasets and provide the normalized: true option to let Chart.js know that you have done so.

Inherited from: ControllerDatasetOptions.normalized

Defined in: index.esm.d.ts:46LineControllerDatasetOptions - 图23 (opens new window)


order

order: number

The drawing order of dataset. Also affects order for stacking, tooltip and legend.

Inherited from: ControllerDatasetOptions.order

Defined in: index.esm.d.ts:66LineControllerDatasetOptions - 图24 (opens new window)


parsing

parsing: false | { [key: string]: string; }

How to parse the dataset. The parsing can be disabled by specifying parsing: false at chart options or dataset. If parsing is disabled, data must be sorted and in the formats the associated chart type and scales use internally.

Inherited from: ControllerDatasetOptions.parsing

Defined in: index.esm.d.ts:37LineControllerDatasetOptions - 图25 (opens new window)


pointBackgroundColor

pointBackgroundColor: ScriptableAndArray<Color, ScriptableContext<line>>

The fill color for points.

Inherited from: void

Defined in: index.esm.d.ts:1755LineControllerDatasetOptions - 图26 (opens new window)


pointBorderColor

pointBorderColor: ScriptableAndArray<Color, ScriptableContext<line>>

The border color for points.

Inherited from: void

Defined in: index.esm.d.ts:1759LineControllerDatasetOptions - 图27 (opens new window)


pointBorderWidth

pointBorderWidth: ScriptableAndArray<number, ScriptableContext<line>>

The width of the point border in pixels.

Inherited from: void

Defined in: index.esm.d.ts:1763LineControllerDatasetOptions - 图28 (opens new window)


pointHitRadius

pointHitRadius: ScriptableAndArray<number, ScriptableContext<line>>

The pixel size of the non-displayed point that reacts to mouse events.

Inherited from: void

Defined in: index.esm.d.ts:1767LineControllerDatasetOptions - 图29 (opens new window)


pointHoverBackgroundColor

pointHoverBackgroundColor: ScriptableAndArray<Color, ScriptableContext<line>>

Point background color when hovered.

Inherited from: void

Defined in: index.esm.d.ts:1786LineControllerDatasetOptions - 图30 (opens new window)


pointHoverBorderColor

pointHoverBorderColor: ScriptableAndArray<Color, ScriptableContext<line>>

Point border color when hovered.

Inherited from: void

Defined in: index.esm.d.ts:1790LineControllerDatasetOptions - 图31 (opens new window)


pointHoverBorderWidth

pointHoverBorderWidth: ScriptableAndArray<number, ScriptableContext<line>>

Border width of point when hovered.

Inherited from: void

Defined in: index.esm.d.ts:1794LineControllerDatasetOptions - 图32 (opens new window)


pointHoverRadius

pointHoverRadius: ScriptableAndArray<number, ScriptableContext<line>>

The radius of the point when hovered.

Inherited from: void

Defined in: index.esm.d.ts:1798LineControllerDatasetOptions - 图33 (opens new window)


pointRadius

pointRadius: ScriptableAndArray<number, ScriptableContext<line>>

The radius of the point shape. If set to 0, the point is not rendered.

Inherited from: void

Defined in: index.esm.d.ts:1771LineControllerDatasetOptions - 图34 (opens new window)


pointRotation

pointRotation: ScriptableAndArray<number, ScriptableContext<line>>

The rotation of the point in degrees.

Inherited from: void

Defined in: index.esm.d.ts:1775LineControllerDatasetOptions - 图35 (opens new window)


pointStyle

pointStyle: ScriptableAndArray<PointStyle, ScriptableContext<line>>

Style of the point.

Inherited from: void

Defined in: index.esm.d.ts:1779LineControllerDatasetOptions - 图36 (opens new window)


showLine

showLine: boolean

Defined in: index.esm.d.ts:189LineControllerDatasetOptions - 图37 (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.

default false

Defined in: index.esm.d.ts:187LineControllerDatasetOptions - 图38 (opens new window)


stack

stack: string

The ID of the group to which this dataset belongs to (when stacked, each group will be a separate stack).

Inherited from: ControllerDatasetOptions.stack

Defined in: index.esm.d.ts:71LineControllerDatasetOptions - 图39 (opens new window)


stepped

stepped: Scriptable<boolean | before | after | middle, ScriptableContext<line>>

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

default false

Inherited from: void

Defined in: index.esm.d.ts:1673LineControllerDatasetOptions - 图40 (opens new window)


tension

tension: Scriptable<number, ScriptableContext<line>>

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

default 0

Inherited from: void

Defined in: index.esm.d.ts:1668LineControllerDatasetOptions - 图41 (opens new window)


transitions

transitions: TransitionsSpec<line>

Inherited from: void

Defined in: index.esm.d.ts:1538LineControllerDatasetOptions - 图42 (opens new window)


xAxisID

xAxisID: string

The ID of the x axis to plot this dataset on.

Defined in: index.esm.d.ts:177LineControllerDatasetOptions - 图43 (opens new window)


yAxisID

yAxisID: string

The ID of the y axis to plot this dataset on.

Defined in: index.esm.d.ts:181LineControllerDatasetOptions - 图44 (opens new window)