hvega-0.5.0.0: tests/specs/data/impute3.vl
{
"transform": [
{
"groupby": [
"c"
],
"keyvals": {
"start": 1,
"step": 1,
"stop": 4
},
"value": 100,
"key": "a",
"impute": "b"
}
],
"mark": "line",
"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
}
]
},
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"encoding": {
"color": {
"field": "c",
"type": "nominal"
},
"x": {
"field": "a",
"scale": {
"nice": 1
},
"type": "quantitative"
},
"y": {
"field": "b",
"type": "quantitative"
}
}
}