Linked views, declared not coded
You want a click on a bar to filter the other charts and the grid. In Fuaran UI you declare that relationship in each reader; you write no click handler.
The three moving parts
- A chart publishes its selection. Clicking a point publishes the clicked row under the chart's own node id. The renderer's default does this; the tree carries no code for it.
- A reader declares a parameter that reads that selection. The parameter's
fromis aSelectionnaming the chart's node id and a field. - A step filters on the parameter. The pipeline's
filterstep compares a column to the parameter.
So the reader's source is a Transform shaped like the one in
Declare a pipeline in the tree, with its from
pointing at another view's selection instead of a filter.
"Nothing selected" is "everything"
A parameter that has no value drops its filter step. Before anyone clicks, every reader shows every row; clear the selection and they all return to that state. You do not write the empty case.
Which views re-derive
Each reader names what it reads, so which views a write makes stale is a question
the tree answers, not the page's code. The corpus holds this as a conformance
family,
binding-propagation:
each vector is a tree, a write, and the set of nodes that must be refreshed.
Evidence
- Fixtures:
grid-transform-param(a pipeline with a bound parameter) andfilters-param-source-declared(parameters declared against filters). - Live: Linked Brushing in the gallery. Click a bar and the other views filter. Its source builds the tree once and attaches no click handler to any chart.
Back to Data in the interface.