hello,
i’m trying to use the vega-Lite block but something eludes me: when I try to use as x: a lookup field, it just doesnt work.
Here’s my very basic code:
{
“$schema”: “https://vega.github.io/schema/vega-lite/v4.json”,
“title”: “XXX”,
“width”: “container”,
“height”: “container”,
“mark”: “bar”,
“encoding”: {
“x”: {
“field”: “CAFF.agence”,
“type”: “nominal”
},
“y”: {
“aggregate”: “count”,
“type”: “quantitative”
}
}
}
And here is the result :
obviously CAFF.agence is well defined… And it works if I try on a non-lookup field. When I try other types, the graph preview doesnt print, so I guess that’s not the issue ; anyway CAFF.agence should be a town name (like, “Paris”).
Is it a limitation of the vega-lite block? Or is it my understanding of the “type” ?
Thanks