Bubble Plot (Natural Disasters)
Visualization of global deaths from natural disasters. Copy of chart from Our World in Data
View this example in the online editor
Vega-Lite JSON Specification
{
"$schema": "https://vega.github.io/schema/vega-lite/v2.json",
"data": {
"url": "data/disasters.csv"
},
"width": 600,
"height": 400,
"transform": [
{"filter": "datum.Entity !== 'All natural disasters'"}
],
"mark": {
"type": "circle",
"opacity": 0.8,
"stroke": "black",
"strokeWidth": 1
},
"encoding": {
"x": {
"field": "Year",
"type": "ordinal",
"axis": {"labelAngle": 0}
},
"y": {"field": "Entity", "type": "nominal", "axis": {"title": ""}},
"size": {
"field": "Deaths",
"type": "quantitative",
"legend": {"title": "Annual Global Deaths"},
"scale": {"range": [0, 5000]}
},
"color": {"field": "Entity", "type": "nominal", "legend": null}
}
}