-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Facet of concat does not work #5261
Comments
We only support unit and layer inside facet right now since there are some complicated layout issues to solve otherwise. We are tracking this issue in #2760. For now, you are supposed to swap concat and facet but somehow this breaks: {
"$schema": "https://vega.github.io/schema/vega-lite/v3.json",
"data": {"url": "data/cars.json"},
"vconcat": [
{
"facet": {"field": "Origin", "type": "nominal"},
"spec": {
"mark": "point",
"encoding": {
"x": {"field": "Horsepower", "type": "quantitative"},
"y": {"field": "Miles_per_Gallon", "type": "quantitative"}
}
}
},
{
"facet": {"field": "Origin", "type": "nominal"},
"spec": {
"mark": "tick",
"encoding": {
"x": {"field": "Horsepower", "type": "quantitative"}
}
}
}
]
} We can tackle these issues (and in particular #2760) after refactoring repeat: #4947. |
Just a note here that concat of facet works since #7639 so updating the title of this issue. |
Thank you. Facet of concat is a lot tricker to get right and less important imo. I'm glad we got concat of X working. |
Faceting of concatenated charts appears to be supported by the renderer, but not allowed by the schema. This means that tools like Altair, which require schema-validated chart specifications, cannot create this type of chart.
Here is an example (vega editor):
It renders as expected, however the specification does not meet the schema requirements:
The text was updated successfully, but these errors were encountered: