vega-lite
vega-lite copied to clipboard
Repeat spec with shared encoding does not replace repeat
In
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/movies.json"},
"repeat": {"column": ["US Gross", "Worldwide Gross"]},
"spec": {
"encoding": {
"x": {"bin": true, "field": "IMDB Rating", "type": "quantitative"},
"y": {
"aggregate": "mean",
"field": {"repeat": "column"},
"type": "quantitative",
"title": "Mean of US and Worldwide Gross"
},
"color": {"datum": {"repeat": "column"}, "type": "nominal"}
},
"layer": [
{"name": "foo", "mark": "line"},
{"name": "bar", "mark": "point"}
]
}
}
the {"repeat": "column"}
is not replaced in the normalized spec.
I think this issue is solved in examples/specs/normalized/repeat_layer_normalized.vl.json