|
58 | 58 | * the three surfaces do not agree, so the tier and the consequence are per |
59 | 59 | * POSITION rather than per rule: |
60 | 60 | * |
61 | | - * - **Report charts.** The chart runs its OWN query out of the two axis |
62 | | - * strings — `useDatasetRows(dataset, [xAxis], [yAxis], …)` in |
| 61 | + * - **Report charts.** The chart runs its OWN query out of the axis |
| 62 | + * strings — `useDatasetRows(dataset, [xAxis], [yAxis], …)`, or |
| 63 | + * `[xAxis, seriesBy]` × `[yAxis]` with a split, in |
63 | 64 | * `plugin-report/src/DatasetReportRenderer.tsx`, and in that file's own |
64 | | - * words *"the embedded chart queries only `chart.xAxis` × `chart.yAxis`"*. |
| 65 | + * words *"the embedded chart queries only `chart.xAxis` (with |
| 66 | + * `chart.seriesBy`) × `chart.yAxis`"*. |
65 | 67 | * So `chart.yAxis` IS the binding and keeps `error`. `chart.series[]` is |
66 | 68 | * not: it is *"The author's per-chart override for ONE measure's display |
67 | 69 | * name — the entry of `chart.series[]` whose `name` IS that measure"*, |
|
117 | 119 | * |
118 | 120 | * The consequence is per POSITION; the selection it is measured against is per |
119 | 121 | * SURFACE — and on the report surface that selection is not `report.values`. |
120 | | - * At the same pinned revision `DatasetReportRenderer.tsx` runs |
121 | | - * `useDatasetRows(dataset, plan.kind === 'series' && xAxis ? [xAxis] : [], |
122 | | - * wantsQuery && yAxis ? [yAxis] : [], …)` and derives the plotted series with |
123 | | - * `buildChartSeries(…, [xAxis], [yAxis], …)` — *"the selection is exactly one |
124 | | - * dimension × one measure, so this takes the helper's single-dimension branch |
125 | | - * and returns ONE series"*. `report.values` is the selection of the TABLE |
126 | | - * beneath the chart; the chart's own is the axis pair. Two things follow: |
| 122 | + * `DatasetReportRenderer.tsx` queries `[xAxis]` (`[xAxis, seriesBy]` with a |
| 123 | + * split) × `[yAxis]` through `useDatasetRows` and derives the plotted series |
| 124 | + * with `buildChartSeries(…, queryDimensions, [yAxis], …)` — *"Without |
| 125 | + * `seriesBy` the selection is one dimension × one |
| 126 | + * measure, so this takes the helper's single-dimension branch and returns ONE |
| 127 | + * series"*; with it, one series per `seriesBy` value, whose override names a |
| 128 | + * value and is not judged here (below). `report.values` is the selection of |
| 129 | + * the TABLE beneath the chart; the chart's own is the axis pair. Two things |
| 130 | + * follow: |
127 | 131 | * |
128 | 132 | * - **Nothing to report at the report `chart.yAxis`.** That position IS the |
129 | 133 | * chart's query, so it cannot fail to select itself. The warning that fired |
@@ -293,8 +297,9 @@ interface ChartBinding { |
293 | 297 | /** |
294 | 298 | * The measures THIS chart's own query selects, when that is narrower than |
295 | 299 | * the `values` limb above (#15734). Set on the report surface and nowhere |
296 | | - * else: the embedded report chart queries `chart.xAxis` × `chart.yAxis` |
297 | | - * alone and derives exactly ONE series from it, while `report.values` is the |
| 300 | + * else: the embedded report chart queries `chart.xAxis` (with its |
| 301 | + * `chart.seriesBy` split, when set) × `chart.yAxis` alone and, without a |
| 302 | + * split, derives exactly ONE series from it, while `report.values` is the |
298 | 303 | * selection of the table beneath it. `chart-axis-not-selected` resolves |
299 | 304 | * against this set where it is present — which is both why a `series[].name` |
300 | 305 | * override is measured against the singleton `{ chart.yAxis }`, and why the |
|
0 commit comments