vega-lite
vega-lite copied to clipboard
Undefined data set when using facets and repeat operator for histograms
{
"$schema": "https://vega.github.io/schema/vega-lite/v3.json",
"repeat": {"column": ["Horsepower","Miles_per_Gallon", "Acceleration"]},
"spec": {
"data": {"url": "data/cars.json"},
"mark": "bar",
"encoding": {
"row":{"field":"Origin", "type":"nominal"},
"x": {
"field": {"repeat": "column"},
"bin": true,
"type": "quantitative"
},
"y": {"aggregate": "count","type": "quantitative"}
}
}
}
Originally from https://stackoverflow.com/questions/54126339/is-it-possible-to-use-facets-and-repeat-operator-for-histograms
Odd. To debug this, we should print the dataflow before optimizations and see whether necessary nodes get removed from it.
scale_child_Miles_per_Gallon_child_main
It's related to scale rename
I am having the same problem while trying to use repeat and facet together. It seems this bug has been open for long time, is there a plan to fix it officially in future?
Yes, I plan to get to these issues this quarter.
I'm having what looks like the same problem here as well, trying to use both repeat and a facet. Any update or pointers to a workaround? Thanks!
I got swamped with other things to work on. I don't have an update yet.
cannot reproduce in v5.16.3