MCPcopy Create free account
hub / github.com/chartjs/Chart.js / getBackgroundColor

Function getBackgroundColor

src/plugins/plugin.colors.ts:31–33  ·  view source on GitHub ↗
(i: number)

Source from the content-addressed store, hash-verified

29}
30
31function getBackgroundColor(i: number) {
32 return BACKGROUND_COLORS[i % BACKGROUND_COLORS.length];
33}
34
35function colorizeDefaultDataset(dataset: ChartDataset, i: number) {
36 dataset.borderColor = getBorderColor(i);

Callers 2

colorizeDefaultDatasetFunction · 0.85
colorizePolarAreaDatasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected