Skip to main content

Interface: ChartDatasetConfig

Defined in: shared/types/chartConfig.ts:207

Chart dataset configuration interface.

Remarksโ€‹

Defines the structure for Chart.js dataset configuration.

Propertiesโ€‹

backgroundColor?โ€‹

optional backgroundColor?: Arrayable<string>

Defined in: shared/types/chartConfig.ts:209

Background color


borderColor?โ€‹

optional borderColor?: Arrayable<string>

Defined in: shared/types/chartConfig.ts:211

Border color


borderWidth?โ€‹

optional borderWidth?: number

Defined in: shared/types/chartConfig.ts:213

Border width


dataโ€‹

data: (number | ChartDataPoint)[]

Defined in: shared/types/chartConfig.ts:215

Dataset data points


fill?โ€‹

optional fill?: boolean

Defined in: shared/types/chartConfig.ts:217

Whether to fill the area under the line


label?โ€‹

optional label?: string

Defined in: shared/types/chartConfig.ts:219

Dataset label


pointBackgroundColor?โ€‹

optional pointBackgroundColor?: Arrayable<string>

Defined in: shared/types/chartConfig.ts:221

Point background color


pointBorderColor?โ€‹

optional pointBorderColor?: Arrayable<string>

Defined in: shared/types/chartConfig.ts:223

Point border color


pointRadius?โ€‹

optional pointRadius?: Arrayable<number>

Defined in: shared/types/chartConfig.ts:225

Point radius


tension?โ€‹

optional tension?: number

Defined in: shared/types/chartConfig.ts:227

Tension for line charts