Boxplot doesn't play well with params
It seems that boxplots don't work with params. Here is a MWE:
{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"data": {"url": "data/penguins.json"},
"mark": "boxplot",
"encoding": {
"y": {"field": "Species", "type": "nominal"},
"x": {
"field": "Body Mass (g)",
"type": "quantitative",
"scale": {"zero": false}
}
},
"params": [{
"name": "selector",
"select": {"type": "point", "fields": ["Species"]},
"bind": {"input": "select", "options": [null, "Adelie", "Chinstrap", "Gentoo"]}
}],
"transform": [{"filter": {"param": "selector"}}]
}
Note that if the mark property is replaced to "point", then the plot works just as expected.
The error message is:
with a warning: "Selection not supported for boxplot yet". However, I don't see any reference in the documentation that params are not supported for boxplots.
Is this a known issue? is there a fix for this planned in the pipeline?
(Thanks for the awesome VegaLite!)
There are known issues with full support for params and I have some prs with a fix that need to be cleaned up/redone now. It's in my queue to fix them.
Thanks for the example.
Any news on fixing this @domoritz ?