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