Checked chart and grid bindings
A chart names columns: an x field and one or more value fields. Its source is a
Transform, and the pipeline decides which columns exist: a derive adds one, a
group-by renames them all. When the name and the pipeline disagree, a chart
usually draws a flat or empty series that looks like data. In Fuaran UI the
disagreement is a validation finding instead.
What is checked
The check reads the schema the chart's or grid's own pipeline produces and compares the names the reader uses against it.
| Reader | Finding | Code |
|---|---|---|
| Chart | an x field, value field or annotation field the pipeline does not produce | FUARAN086 |
| Chart | a value field that is produced but is not numeric | FUARAN087 |
| Chart | a temporal x-axis over a column that is not a date | FUARAN097 |
| Grid | a column field or row key the pipeline does not produce | FUARAN114 |
Each finding carries its code, a message, the JSONPath of the slot the author wrote, and the typed schema the source does produce, so the repair is a rename, not a search. The codes are described on the error codes page.
What it does not judge
The check says nothing where it cannot close the set of columns: a source that is a
named reference the host resolves, a pivot step, or a state, query or
host-supplied source. Those readers are graded unchecked, with a reason, and
nothing is refused, because nothing negative can be proved. A grid's action columns
(button cells) carry no field and are not checked.
The fixtures
Each case has a fixture in the conformance corpus:
binding-check-chart-ungrounded: a value field the group-by renamed away.binding-check-chart-not-numeric: a value field that names a string column.binding-check-chart-temporal-not-date: a temporal x-axis over a non-date column.binding-check-grid-ungrounded: a grid column and row key the pipeline does not produce.binding-check-unchecked: a chart over an undeclared reference and a grid over a query; nothing is refused.binding-check-control: the control, a chart and a grid that read only what their pipeline produces.
See it
The gallery's Typed Refusal lets you break a chart's binding and read the refusal. Its source asks the shipped report about the chart before rendering anything, and draws the report, not the chart, when there is a finding.
Back to Data in the interface.