-
Notifications
You must be signed in to change notification settings - Fork 627
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
Can't aggregate nested field in bar chart. #3744
Comments
I thing it's another version {
"encoding": {
"y": {
"aggregate": "count",
"stack": null,
"type": "quantitative"
},
"x": {
"bin":true,
"title": "sepalLength",
"field": "properties.sepalLength",
"stack": null,
"type": "quantitative"
},
"color": {
"title": "species",
"field": "properties.species",
"type": "nominal"
}
},
"data": {
"values": {
"features": [
{
"properties": {
"sepalLength": 5.1,
"species": "setosa"
}
},
{
"properties": {
"sepalLength": 6.5,
"species": "virginica"
}
},
{
"properties": {
"sepalLength": 6.2,
"species": "virginica"
}
},
{
"properties": {
"sepalLength": 5.9,
"species": "setosa"
}
}
],
"type": "FeatureCollection"
},
"format": {"type": "json", "property": "features"}
},
"mark": "area",
"$schema": "https://vega.github.io/schema/vega-lite/v2.4.1.json"
} |
3 tasks
domoritz
added a commit
that referenced
this issue
Jul 15, 2018
…not be nested so you have to provide a field name, not a field accessor. Fixes #3744.
Found the issue and fixed it in #4021. |
@iliatimofeev Thank you so much for the perfect examples to reproduce the issue! This made it so much easier for me to fix this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Can't aggregate nested field in bar chart. Possible the same as #3727
live demo https://iliatimofeev.github.io/sharer/testreport/#horizontal_stacked_bar_chart
The text was updated successfully, but these errors were encountered: