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/v4.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": "temporal",
"axis": {"grid": false}
},
"y": {"field": "Entity", "type": "nominal", "axis": {"title": ""}},
"size": {
"field": "Deaths",
"type": "quantitative",
"title": "Annual Global Deaths",
"legend": {"clipHeight": 30},
"scale": {"rangeMax": 5000}
},
"color": {"field": "Entity", "type": "nominal", "legend": null}
}
}