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

Function field

js/visualization.js:2205–2212  ·  view source on GitHub ↗
(columnId)

Source from the content-addressed store, hash-verified

2203 return null;
2204 }
2205 const field = (columnId) => {
2206 const index = OCA.Analytics.ChartOptions.resolveColumnIndex(reportData, columnId);
2207 return index < 0 ? null : {
2208 id: columnId,
2209 index,
2210 label: reportData.header?.[index] || String(columnId),
2211 };
2212 };
2213 const category = field(mapping.category);
2214 const seriesDimensions = mapping.series.map(field).filter(Boolean);
2215 const measures = mapping.measures.map(field).filter(Boolean);

Callers 1

visualization.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected