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

Function inputIndex

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

Source from the content-addressed store, hash-verified

1531
1532 if (calcColumn && calcColumn.operation === "percentage") {
1533 const inputIndex = position => {
1534 const reference = calcColumn.references?.[position];
1535 return reference ? definitions.findIndex(item => item.analyticsReference === reference) : calcColumn.columns[position];
1536 };
1537 // Access the data for the numerator and denominator columns
1538 const numeratorData = calcColumn._analyticsAvailable === false || inputIndex(0) < 0
1539 ? []

Callers 1

visualization.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected