vega-lite: repeat chart with top level defined brush selection corrupts cross-view interaction
This issue is linked to this comment: https://github.com/vega/vega-lite/issues/8230#issuecomment-1201358652. Example is based on a repeated chart such as this example: https://vega.github.io/vega-lite/examples/interactive_layered_crossfilter.html
Upon manually defining a "name":"CHART" property for the view defining the param + filter the units-field in the brush_store is fixed to the name "CHART", as can be seen in the data-viewer below. No matter which view is being brushed. This makes the brush selection corrupt cross-view.
Spec that errors: Open the Chart in the Vega Editor
Comparison to not using a manual defined name property:
When I make a brush selection the first view (most left), I observe that the unit field is filled with "child__column_distance_layer_0" and when changing the brush selection to the middle-plot the unit field changes to "child__column_delay_layer_0" and the last view has an unit in the brush store defined as "child__column_time_layer_0".
I somehow hoped I could use these programmatically defined units as different views in a top-level defined params object as such:
"params": [
{
"name": "brush",
"select": {"type": "interval", "encodings": ["x"]},
"views": ["child__column_distance_layer_0", "child__column_delay_layer_0", "child__column_time_layer_0"]
}
]
but to no avail ([Error] Unrecognized signal name: "brush")…
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (20 by maintainers)
Ok! More clear now. I’ll subscribe to #8663 to see how this lands in VL👍
I’ll try to look over this stuff carefully in the next few days.