User:Morganstedmanms/Sandbox

Anime Production Timeline
{ "background": "white", "padding": 5, "width": 500, "height": 80, "style": "cell", "data": [ {     "name": "source_0", "values": [ {"task": "Season 1", "start": 400, "end": 1300}, {"task": "Season 2", "start": 1021, "end": 2022} ]   },    {      "name": "data_0", "source": "source_0", "transform": [ {         "type": "filter", "expr": "isValid(datum[\"start\"]) && isFinite(+datum[\"start\"])" }     ]    }  ],  "marks": [ {     "name": "marks", "type": "rect", "style": ["bar"], "from": {"data": "data_0"}, "encode": { "update": { "fill": {"value": "#4c78a8"}, "ariaRoleDescription": {"value": "bar"}, "description": { "signal": "\"start: \" + (format(datum[\"start\"], \"\")) + \"; task: \" + (isValid(datum[\"task\"]) ? datum[\"task\"] : \"\"+datum[\"task\"]) + \"; end: \" + (format(datum[\"end\"], \"\"))" },         "x": {"scale": "x", "field": "start"}, "x2": {"scale": "x", "field": "end"}, "y": {"scale": "y", "field": "task"}, "height": {"scale": "y", "band": 1} }     }    }  ],  "scales": [ {     "name": "x", "type": "linear", "domain": {"data": "data_0", "fields": ["start", "end"]}, "range": [0, {"signal": "width"}], "nice": true, "zero": true },   {      "name": "y", "type": "band", "domain": {"data": "data_0", "field": "task", "sort": true}, "range": [0, {"signal": "height"}], "paddingInner": 0.1, "paddingOuter": 0.05 } ],  "axes": [ {     "scale": "x", "orient": "bottom", "gridScale": "y", "grid": true, "tickCount": {"signal": "ceil(width/40)"}, "domain": false, "labels": false, "aria": false, "maxExtent": 0, "minExtent": 0, "ticks": false, "zindex": 0 },   {      "scale": "x", "orient": "bottom", "grid": false, "title": "start, end", "labelFlush": true, "labelOverlap": true, "tickCount": {"signal": "ceil(width/40)"}, "zindex": 0 },   {      "scale": "y", "orient": "left", "grid": false, "title": "task", "zindex": 0 } ],  "config": {} }