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

Function keyFor

js/visualization.js:2453–2453  ·  view source on GitHub ↗
(row, measure)

Source from the content-addressed store, hash-verified

2451 const sampleSeries = new Map();
2452 const groupFor = row => seriesIndexes.map(index => String(row[index] ?? ''));
2453 const keyFor = (row, measure) => JSON.stringify([...groupFor(row), measure]);
2454 rows.forEach((row, rowIndex) => {
2455 if (!Array.isArray(row)) return;
2456 if (model === 'kpiModel') {

Callers 1

visualization.jsFile · 0.85

Calls 1

groupForFunction · 0.85

Tested by

no test coverage detected