(columnId)
| 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); |