MCPcopy
hub / github.com/chartjs/Chart.js / color

Function color

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

Source from the content-addressed store, hash-verified

116];
117
118export function color(index) {
119 return COLORS[index % COLORS.length];
120}
121
122export function transparentize(value, opacity) {
123 var alpha = opacity === undefined ? 0.5 : 1 - opacity;

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected