User:Akhenaten0/sandbox

US-Indian Relations
{ "width": 1400, "height": 400, "data": [ {     "name": "people", "values": [ {"label":"Pontiac",   "born":-7889227200000, "died":-6342840000000, "enter":-6532228800000, "leave":-6543228900000}, {"label":"Occom",    "born":-7794532800000, "died":-5617080000000, "enter":-6374462400000, "leave":-6387462400000}, {"label":"Logan",    "born":-7731374400000, "died":-5995771200000, "enter":-6185073600000, "leave":-6195073600000}, {"label":"Franklin", "born":-8330990400000, "died":-5680152000000, "enter":-5869540800000, "leave":-5879540800000}, {"label":"Red Jacket", "born":-6689995200000, "died":-4417934400000, "enter":-5206852800000, "leave":-5216852800000}, {"label":"Tecumseh",   "born":-6153537600000, "died":-4954392000000, "enter":-5017550400000, "leave":-5027550400000}, {"label":"Black Hawk", "born":-6405998400000, "died":-4165473600000, "enter":-4323240000000, "leave":-4333240000000}, {"label":"Petalesharo", "born":-5459227200000, "died":-3029400000000, "enter":-4670395200000, "leave":-4680395200000}, {"label":"Boudinot", "born":-5238475200000, "died":-4133937600000, "enter":-4481092800000, "leave":-4491092800000}, {"label":"Emerson",    "born":-5270011200000, "died":-2776939200000, "enter":-4165473600000, "leave":-4175473600000}, {"label":"PRES Jackson",   "born":-6405998400000, "died":-3944548800000, "enter":-4449470400000, "leave":-4197009600000}, {"label":"PRES Van Buren",   "born":-5932612800000, "died":-3408091200000, "enter":-4197009600000, "leave":-4070779200000} ]   },    {      "name": "events", "format": {"type":"json", "parse":{"when":"date"}}, "values": [ {"name":"Declaration",    "when":"4 July 1776"}, {"name":"Treaty of Paris",    "when":"September 3, 1783"}, {"name":"Constitution",    "when":"March 4, 1789"}, {"name":"War of 1812",    "when":"June 18, 1812"}, {"name":"Treaty of Ghent",    "when":"February 18, 1815"}, {"name":"Sequoyah's Syllabery",    "when":"1 January 1821"}, {"name":"Cherokee Constitution", "when":"1 January 1827"}, {"name":"Indian Removal Act", "when":"1 January 1830"}, {"name":"Trail of Tears begins", "when":"1 January 1838"}, {"name":"Black Hawk War", "when":"1 January 1832"}, ]   },  ],  "scales": [ {     "name": "y", "type": "ordinal", "range": "height", "domain": {"data": "people", "field": "label"} },   {      "name": "x", "type": "time", "range": "width", "round": true, "nice": "year", "domain": {"data": "people", "field": ["born", "died"]} } ],  "axes": [ {     "type": "x", "scale": "x", "properties": {"labels": {"fontSize": {"value": 18}}} } ],  "marks": [ {     "type": "text", "from": {"data": "events"}, "properties": { "enter": { "x": {"scale": "x", "field": "when"}, "y": {"value": -10}, "angle": {"value": -90}, "fill": {"value": "#000"}, "text": {"field": "name"}, "font": {"value": "Helvetica Neue"}, "fontSize": {"value": 15} }     }    },    {      "type": "rect", "from": {"data": "events"}, "properties": { "enter": { "x": {"scale": "x", "field": "when"}, "y": {"value": -8}, "width": {"value": 1}, "height": {"field": {"group": "height"}, "offset": 8}, "fill": {"value": "#888"} }     }    },

{     "type": "text", "from": {"data": "people"}, "properties": { "enter": { "x": {"scale": "x", "field": "born"}, "y": {"scale": "y", "field": "label", "offset": -3}, "fill": {"value": "#000"}, "text": {"field": "label"}, "font": {"value": "Helvetica Neue"}, "fontSize": {"value": 15} }     }    },    {      "type": "rect", "from": {"data": "people"}, "properties": { "enter": { "x": {"scale": "x", "field": "born"}, "x2": {"scale": "x", "field": "died"}, "y": {"scale": "y", "field": "label"}, "height": {"value": 2}, "fill": {"value": "#557"} }     }    },    {      "type": "rect", "from": {"data": "people"}, "properties": { "enter": { "x": {"scale": "x", "field": "enter"}, "x2": {"scale": "x", "field": "leave"}, "y": {"scale": "y", "field": "label", "offset":-1}, "height": {"value": 4}, "fill": {"value": "#e44"} }     }    }  ] }