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

Function namedColor

docs/scripts/utils.js:147–149  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

145];
146
147export function namedColor(index) {
148 return NAMED_COLORS[index % NAMED_COLORS.length];
149}
150
151export function newDate(days) {
152 return DateTime.now().plus({days}).toJSDate();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected