User:Mvolz/sandbox

Cite Q




Breastfeeding prevalence
{	"version": 2, "width": 600, "height": 200, "data": [ {			"name": "table", "values": [ {					"x": "Eastern &\nSouthern \nAfrica", "y": 56 },				{					"x": "South \nAsia", "y": 52 },				{					"x": "Latin \nAmerica &\nCarribean", "y": 39 },				{					"x": "West & \nCentral \nAfrica", "y": 33 },				{					"x": "Middle \nEast & \nNorth \nAfrica", "y": 33 },				{					"x": "Eastern \nEurope & \nCentral \nAsia", "y": 32 },				{					"x": "North \nAmerica", "y": 26 },				{					"x": "East \nAsia & \nPacific", "y": 22 },				{					"x": "Global", "y": 41 }			]		}	],	"scales": [ {			"name": "x", "type": "ordinal", "range": "width", "zero": false, "domain": { "data": "table", "field": "x" }		},		{			"name": "y", "type": "linear", "range": "height", "nice": true, "stack": "normalize", "domain": { "data": "table", "field": "y" }		}	],	"axes": [ {			"type": "y", "scale": "y" },		{			"type": "x", "scale": "x", "axis": { "title": "% of infants 0-5 months exclusively breastfed" }		}	],	"marks": [ {			"type": "rect", "from": { "data": "table" },			"properties": { "enter": { "x": { "scale": "x", "field": "x" },					"y": { "scale": "y", "field": "y" },					"y2": { "scale": "y", "value": 0 },					"fill": { "value": "steelblue" },					"width": { "scale": "x", "band": "true", "offset": -1 }				}			}		}	],	"padding": { "top": 30, "bottom": 60, "left": 30, "right": 30 } }