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

Function type

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

Source from the content-addressed store, hash-verified

2243 });
2244 if (measures.size < 2) return null;
2245 const type = index => datasets[index].type || chart.config.type;
2246 if ([...groups.values()].some(indexes => new Set(indexes.map(index => datasets[index].backgroundColor)).size !== 1)
2247 || [...measures.values()].some(indexes => new Set(indexes.map(type)).size !== 1)
2248 || [...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