hvega-0.12.0.7: tests/specs/data/impute2.vl
{
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"data": {
"values": [
{
"a": 0,
"b": 28,
"c": 0
},
{
"a": 0,
"b": 91,
"c": 1
},
{
"a": 1,
"b": 43,
"c": 0
},
{
"a": 1,
"b": 55,
"c": 1
},
{
"a": 2,
"b": 81,
"c": 0
},
{
"a": 2,
"b": 53,
"c": 1
},
{
"a": 3,
"b": 19,
"c": 0
}
]
},
"encoding": {
"color": {
"field": "c",
"type": "nominal"
},
"x": {
"field": "a",
"scale": {
"nice": 1
},
"type": "quantitative"
},
"y": {
"field": "b",
"type": "quantitative"
}
},
"mark": "line",
"transform": [
{
"frame": [
-2,
2
],
"groupby": [
"c"
],
"impute": "b",
"key": "a",
"method": "mean"
}
]
}