MCPcopy Create free account
hub / github.com/Rello/analytics / type

Function type

js/visualization.js:2230–2230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2228 });
2229 if (measures.size < 2) return null;
2230 const type = index => datasets[index].type || chart.config.type;
2231 if ([...groups.values()].some(indexes => new Set(indexes.map(index => datasets[index].backgroundColor)).size !== 1)
2232 || [...measures.values()].some(indexes => new Set(indexes.map(type)).size !== 1)
2233 || [...measures.values()].some(indexes => !['bar', 'line'].includes(type(indexes[0])))) return null;

Callers 1

visualization.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected