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

Function field

js/visualization.js:2190–2197  ·  view source on GitHub ↗
(columnId)

Source from the content-addressed store, hash-verified

2188 return null;
2189 }
2190 const field = (columnId) => {
2191 const index = OCA.Analytics.ChartOptions.resolveColumnIndex(reportData, columnId);
2192 return index < 0 ? null : {
2193 id: columnId,
2194 index,
2195 label: reportData.header?.[index] || String(columnId),
2196 };
2197 };
2198 const category = field(mapping.category);
2199 const seriesDimensions = mapping.series.map(field).filter(Boolean);
2200 const measures = mapping.measures.map(field).filter(Boolean);

Callers 1

visualization.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected