(data)
| 234 | |
| 235 | /** Days down the side, one column per series. */ |
| 236 | const seriesTable = (data) => ({ |
| 237 | columns: ['Day', ...data.datasets.map((ds) => ds.label)], |
| 238 | rows: data.labels.map((day, i) => [ |
| 239 | day, |
| 240 | ...data.datasets.map((ds) => (ds.data[i] === null ? '—' : number(ds.data[i]))), |
| 241 | ]), |
| 242 | }); |
| 243 | |
| 244 | /** Both numbers, always — the panel plots one of them, the table shows both. */ |
| 245 | const breakdownTable = (data) => ({ |