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

Function months

docs/scripts/utils.js:91–104  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

89];
90
91export function months(config) {
92 var cfg = config || {};
93 var count = cfg.count || 12;
94 var section = cfg.section;
95 var values = [];
96 var i, value;
97
98 for (i = 0; i < count; ++i) {
99 value = MONTHS[Math.ceil(i) % 12];
100 values.push(value.substring(0, section));
101 }
102
103 return values;
104}
105
106const COLORS = [
107 '#4dc9f6',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected