Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ChartDataset

Hierarchy

  • ChartDataset

Index

Properties

Optional backgroundColor

backgroundColor?: Scriptable<CHARTJS.Color>

base background color

see

Defaults.backgroundColor

Optional borderColor

borderColor?: Scriptable<CHARTJS.Color>

Color of the border.

default

'rgba(0, 0, 0, 0)'

Optional borderWidth

borderWidth?: Scriptable<number>

Size of the border.

default

0

Optional data

data?: any[]

Optional fill

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

Optional label

label?: string

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

Optional segment

segment?: { backgroundColor?: Scriptable<CHARTJS.Color>; borderCapStyle?: Scriptable<CanvasLineCap>; borderColor?: Scriptable<CHARTJS.Color>; borderDash?: Scriptable<number[]>; borderDashOffset?: Scriptable<number>; borderJoinStyle?: Scriptable<CanvasLineJoin>; borderWidth?: Scriptable<number> }

Type declaration

Generated using TypeDoc