Module

x/vega_lite/examples/specs/line_impute_method.vl.json

A concise grammar of interactive graphics, built on Vega.
Latest
File
{ "$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}] }, "mark": "line", "encoding": { "x": {"field": "a", "type": "quantitative", "scale": {"nice": 1}}, "y": {"field": "b", "type": "quantitative", "impute": {"method": "mean"}}, "color": {"field": "c", "type": "nominal"} }}