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

Function getBorderColor

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

Source from the content-addressed store, hash-verified

25const BACKGROUND_COLORS = /* #__PURE__ */ BORDER_COLORS.map(color => color.replace('rgb(', 'rgba(').replace(')', ', 0.5)'));
26
27function getBorderColor(i: number) {
28 return BORDER_COLORS[i % BORDER_COLORS.length];
29}
30
31function getBackgroundColor(i: number) {
32 return BACKGROUND_COLORS[i % BACKGROUND_COLORS.length];

Callers 2

colorizeDefaultDatasetFunction · 0.85
colorizeDoughnutDatasetFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected