User:Rwxrwxrwx/sandbox

{ "version": 2, "width": 300, "height": 200, "padding": {"top": 10, "left": 30, "bottom": 30, "right": 10}, "data": [ {     "name": "table", "values": [ { "x": "1787", "y": "212" }, { "x": "1900", "y": "1205" }, { "x": "1950", "y": "1198" }, { "x": "1980", "y": "915" }, { "x": "2000", "y": "789" }, { "x": "2010", "y": "718" }, { "x": "2015", "y": "663" } ]   }  ],  "scales": [ {     "name": "x", "type": "ordinal", "range": "width", "domain": {"data": "table", "field": "x"} },   {      "name": "y", "range": "height", "nice": true, "domain": {"data": "table", "field": "y"} } ],  "axes": [ {"type": "x", "scale": "x"}, {"type": "y", "scale": "y"} ], "marks": [ {     "type": "rect", "from": {"data": "table"}, "properties": { "enter": { "x": {"scale": "x", "field": "x"}, "width": {"scale": "x", "band": true, "offset": -1}, "y": {"scale": "y", "field": "y"}, "y2": {"scale": "y", "value": 0} },       "update": { "fill": {"value": "steelblue"} } }   }  ] }

{ "version": 2, "width": 500, "height": 250, "data": [ {     "name": "table", "values": [ { "x": 1787, "y": 212 }, { "x": 1900, "y": 1205 }, { "x": 1950, "y": 1198 }, { "x": 1980, "y": 915 }, { "x": 2000, "y": 789 }, { "x": 2010, "y": 718 }, { "x": 2015, "y": 663 } ]   }  ],  "scales": [ {     "name": "x", "type": "ordinal", "range": "width", "zero": "false", "domain": { "data": "table", "field": "x" } },   {      "name": "y", "type": "linear", "range": "height", "nice": "true", "domain": { "data": "table", "field": "y" } } ],  "axes": [ { "type": "x", "scale": "x" }, { "type": "y", "scale": "y" } ], "marks": [ {     "type": "line", "from": { "data": "table" }, "properties": { "enter": { "x": { "scale": "x", "field": "x" }, "y": { "scale": "y", "field": "y" }, "y2": { "scale": "y", "value": 0 }, "interpolate": { "value": "monotone" }, "stroke": { "value": "steelblue" }, "strokeWidth": { "value": 3 } }     }    }  ] } {  "version": 2, "description": "A simple bar chart with embedded data.", "data": { "values": [ {"a": "A","b": 28}, {"a": "B","b": 55}, {"a": "C","b": 43}, {"a": "D","b": 91}, {"a": "E","b": 81}, {"a": "F","b": 53}, {"a": "G","b": 19}, {"a": "H","b": 87}, {"a": "I","b": 52} ] },  "mark": "bar", "encoding": { "x": {"field": "a", "type": "ordinal"}, "y": {"field": "b", "type": "quantitative"} } }