Vega plugin Line Chart¶ 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45{ "width": 400, "height": 200, "data": [ { "name": "table", "values": [ { "x": 0, "y": 50 }, { "x": 1, "y": 0 }, { "x": 2, "y": 30 }, { "x": 3, "y": 40 }, { "x": 4, "y": 60 }, { "x": 5, "y": 25 } ] } ], "scales": [ { "name": "x", "type": "point", "range": "width", "domain": { "data": "table", "field": "x" } }, { "name": "y", "type": "linear", "range": "height", "domain": { "data": "table", "field": "y" } } ], "axes": [ { "orient": "bottom", "scale": "x" }, { "orient": "left", "scale": "y" } ], "marks": [ { "type": "line", "from": { "data": "table" }, "encode": { "enter": { "x": { "scale": "x", "field": "x" }, "y": { "scale": "y", "field": "y" }, "interpolate": { "value": "monotone" } } } } ] } Last update: 2023-03-24 Authors: Christian Plonka