Interface: LineControllerDatasetOptions
<LineOptions, <line>>
AnimationOptions<line>
↳ LineControllerDatasetOptions
Properties
• animation: false | AnimationSpec<line> & { : (event
: ) => void ; onProgress?
: (event
: AnimationEvent) => void }
Inherited from: void
Defined in:
animations
• animations: <line>
Inherited from: void
Defined in: index.esm.d.ts:1537 (opens new window)
backgroundColor
• backgroundColor: Scriptable<, ScriptableContext<line>>
Inherited from: void
Defined in:
borderCapStyle
• borderCapStyle: <CanvasLineCap, ScriptableContext<line>>
Line cap style. See MDN.
default
‘butt’
Inherited from: void
Defined in:
borderColor
• borderColor: <Color, <line>>
Inherited from: void
Defined in: index.esm.d.ts:1581 (opens new window)
borderDash
• borderDash: Scriptable<number[], <line>>
Line dash. See MDN.
[]
Inherited from: void
Defined in: index.esm.d.ts:1643 (opens new window)
borderDashOffset
• borderDashOffset: Scriptable<number, <line>>
Line dash offset. See MDN.
default
0.0
Inherited from: void
Defined in: index.esm.d.ts:1648 (opens new window)
borderJoinStyle
• borderJoinStyle: Scriptable<CanvasLineJoin, <line>>
Line join style. See MDN.
default
‘miter’
Inherited from: void
Defined in: index.esm.d.ts:1653 (opens new window)
borderWidth
• borderWidth: Scriptable<number, <line>>
Inherited from: void
Defined in: index.esm.d.ts:1580 (opens new window)
capBezierPoints
• capBezierPoints: Scriptable<boolean, <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:1658 (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: .clip
Defined in:
cubicInterpolationMode
• cubicInterpolationMode: <default | monotone, ScriptableContext<line>>
Interpolation mode to apply.
default
‘default’
Inherited from: void
Defined in:
hidden
• hidden: boolean
Configures the visibility state of the dataset. Set it to true, to hide the dataset from the chart.
false
Inherited from: .hidden
hoverBackgroundColor
• hoverBackgroundColor: Scriptable<, ScriptableContext<line>>
Inherited from: void
Defined in:
• hoverBorderCapStyle: Scriptable<CanvasLineCap, <line>>
Inherited from: void
Defined in: index.esm.d.ts:1677 (opens new window)
hoverBorderColor
• hoverBorderColor: Scriptable<, ScriptableContext<line>>
Inherited from: void
Defined in:
hoverBorderDash
• hoverBorderDash: <number[], ScriptableContext<line>>
Inherited from: void
Defined in:
hoverBorderDashOffset
• hoverBorderDashOffset: <number, ScriptableContext<line>>
Inherited from: void
Defined in:
hoverBorderJoinStyle
• hoverBorderJoinStyle: <CanvasLineJoin, ScriptableContext<line>>
Inherited from: void
Defined in:
hoverBorderWidth
• hoverBorderWidth: <number, ScriptableContext<line>>
Inherited from: void
Defined in:
indexAxis
• indexAxis: x | y
The base axis of the chart. ‘x’ for vertical charts and ‘y’ for horizontal charts.
default
‘x’
Inherited from: .indexAxis
Defined in:
label
• label: string
The label for the dataset which appears in the legend and tooltips.
Inherited from: .label
Defined in:
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: .normalized
Defined in:
order
• order: number
The drawing order of dataset. Also affects order for stacking, tooltip and legend.
Inherited from: .order
Defined in:
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: .parsing
Defined in:
pointBackgroundColor
• pointBackgroundColor: <Color, <line>>
The fill color for points.
Inherited from: void
Defined in: index.esm.d.ts:1755 (opens new window)
pointBorderColor
• pointBorderColor: ScriptableAndArray<, ScriptableContext<line>>
The border color for points.
Inherited from: void
Defined in:
pointBorderWidth
• pointBorderWidth: <number, ScriptableContext<line>>
The width of the point border in pixels.
Inherited from: void
Defined in:
• pointHitRadius: ScriptableAndArray<number, <line>>
The pixel size of the non-displayed point that reacts to mouse events.
Inherited from: void
pointHoverBackgroundColor
• pointHoverBackgroundColor: <Color, <line>>
Point background color when hovered.
Inherited from: void
Defined in: index.esm.d.ts:1786 (opens new window)
pointHoverBorderColor
• pointHoverBorderColor: ScriptableAndArray<, ScriptableContext<line>>
Point border color when hovered.
Inherited from: void
Defined in:
pointHoverBorderWidth
• pointHoverBorderWidth: <number, ScriptableContext<line>>
Border width of point when hovered.
Inherited from: void
Defined in:
pointHoverRadius
• pointHoverRadius: <number, ScriptableContext<line>>
The radius of the point when hovered.
Inherited from: void
Defined in:
pointRadius
• pointRadius: <number, ScriptableContext<line>>
The radius of the point shape. If set to 0, the point is not rendered.
Inherited from: void
Defined in:
pointRotation
• pointRotation: <number, ScriptableContext<line>>
The rotation of the point in degrees.
Inherited from: void
Defined in:
pointStyle
• pointStyle: <PointStyle, <line>>
Style of the point.
Inherited from: void
Defined in: index.esm.d.ts:1779 (opens new window)
showLine
• showLine: boolean
Defined in: index.esm.d.ts:189 (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:187 (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.
Defined in: index.esm.d.ts:71 (opens new window)
stepped
• stepped: Scriptable<boolean | before | after | middle, <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:1673 (opens new window)
tension
• tension: Scriptable<number, <line>>
Bézier curve tension (0 for no Bézier curves).
default
0
Inherited from: void
Defined in: index.esm.d.ts:1668 (opens new window)
transitions
• transitions: TransitionsSpec<line>
Inherited from: void
Defined in:
• xAxisID: string
The ID of the x axis to plot this dataset on.
Defined in: index.esm.d.ts:177 (opens new window)
yAxisID
• yAxisID: string
The ID of the y axis to plot this dataset on.
Defined in: index.esm.d.ts:181 (opens new window)