{
"$schema": "https://vega.github.io/schema/vega-lite/v5.json",
"description": "Flood Risk Projections for Southern States",
"hconcat": [
{
"width": 250,
"height": 200,
"title": "Current Flood Risk (2023)",
"data": {
"url": "https://cdn.jsdelivr.net/npm/us-atlas@3/states-10m.json",
"format": {
"type": "topojson",
"feature": "states"
}
},
"transform": [
{
"lookup": "id",
"from": {
"data": {
"values": [
{
"id": 12,
"state": "Florida",
"risk": 45
},
{
"id": 13,
"state": "Georgia",
"risk": 30
},
{
"id": 45,
"state": "South Carolina",
"risk": 40
},
{
"id": 37,
"state": "North Carolina",
"risk": 35
},
{
"id": 22,
"state": "Louisiana",
"risk": 50
},
{
"id": 1,
"state": "Alabama",
"risk": 35
},
{
"id": 28,
"state": "Mississippi",
"risk": 40
}
]
},
"key": "id",
"fields": [
"risk",
"state"
]
}
}
],
"projection": {
"type": "albersUsa"
},
"mark": "geoshape",
"encoding": {
"color": {
"field": "risk",
"type": "quantitative",
"scale": {
"scheme": "blues"
},
"title": "Flood Risk Index"
},
"tooltip": [
{
"field": "state",
"type": "nominal",
"title": "State"
},
{
"field": "risk",
"type": "quantitative",
"title": "Flood Risk Index"
}
]
}
},
{
"width": 250,
"height": 200,
"title": "10 Year Projection (2033)",
"data": {
"url": "https://cdn.jsdelivr.net/npm/us-atlas@3/states-10m.json",
"format": {
"type": "topojson",
"feature": "states"
}
},
"transform": [
{
"lookup": "id",
"from": {
"data": {
"values": [
{
"id": 12,
"state": "Florida",
"risk": 55
},
{
"id": 13,
"state": "Georgia",
"risk": 35
},
{
"id": 45,
"state": "South Carolina",
"risk": 50
},
{
"id": 37,
"state": "North Carolina",
"risk": 45
},
{
"id": 22,
"state": "Louisiana",
"risk": 60
},
{
"id": 1,
"state": "Alabama",
"risk": 40
},
{
"id": 28,
"state": "Mississippi",
"risk": 45
}
]
},
"key": "id",
"fields": [
"risk",
"state"
]
}
}
],
"projection": {
"type": "albersUsa"
},
"mark": "geoshape",
"encoding": {
"color": {
"field": "risk",
"type": "quantitative",
"scale": {
"scheme": "blues"
},
"title": "Flood Risk Index"
},
"tooltip": [
{
"field": "state",
"type": "nominal",
"title": "State"
},
{
"field": "risk",
"type": "quantitative",
"title": "Flood Risk Index"
}
]
}
},
{
"width": 250,
"height": 200,
"title": "20 Year Projection (2043)",
"data": {
"url": "https://cdn.jsdelivr.net/npm/us-atlas@3/states-10m.json",
"format": {
"type": "topojson",
"feature": "states"
}
},
"transform": [
{
"lookup": "id",
"from": {
"data": {
"values": [
{
"id": 12,
"state": "Florida",
"risk": 70
},
{
"id": 13,
"state": "Georgia",
"risk": 45
},
{
"id": 45,
"state": "South Carolina",
"risk": 65
},
{
"id": 37,
"state": "North Carolina",
"risk": 60
},
{
"id": 22,
"state": "Louisiana",
"risk": 75
},
{
"id": 1,
"state": "Alabama",
"risk": 50
},
{
"id": 28,
"state": "Mississippi",
"risk": 55
}
]
},
"key": "id",
"fields": [
"risk",
"state"
]
}
}
],
"projection": {
"type": "albersUsa"
},
"mark": "geoshape",
"encoding": {
"color": {
"field": "risk",
"type": "quantitative",
"scale": {
"scheme": "blues"
},
"title": "Flood Risk Index"
},
"tooltip": [
{
"field": "state",
"type": "nominal",
"title": "State"
},
{
"field": "risk",
"type": "quantitative",
"title": "Flood Risk Index"
}
]
}
},
{
"width": 250,
"height": 200,
"title": "50 Year Projection (2073)",
"data": {
"url": "https://cdn.jsdelivr.net/npm/us-atlas@3/states-10m.json",
"format": {
"type": "topojson",
"feature": "states"
}
},
"transform": [
{
"lookup": "id",
"from": {
"data": {
"values": [
{
"id": 12,
"state": "Florida",
"risk": 90
},
{
"id": 13,
"state": "Georgia",
"risk": 60
},
{
"id": 45,
"state": "South Carolina",
"risk": 85
},
{
"id": 37,
"state": "North Carolina",
"risk": 80
},
{
"id": 22,
"state": "Louisiana",
"risk": 95
},
{
"id": 1,
"state": "Alabama",
"risk": 65
},
{
"id": 28,
"state": "Mississippi",
"risk": 70
}
]
},
"key": "id",
"fields": [
"risk",
"state"
]
}
}
],
"projection": {
"type": "albersUsa"
},
"mark": "geoshape",
"encoding": {
"color": {
"field": "risk",
"type": "quantitative",
"scale": {
"scheme": "blues"
},
"title": "Flood Risk Index"
},
"tooltip": [
{
"field": "state",
"type": "nominal",
"title": "State"
},
{
"field": "risk",
"type": "quantitative",
"title": "Flood Risk Index"
}
]
}
}
]
}