{
"transform": [
{
"filter": "datum.latitude != '' && datum.county != 'Honolulu' && datum.state !='AS'&& datum.state !='FM'&& datum.state !='PW'&& datum.state !='MH'&& datum.state !='GU'&& datum.state !='MP'&& datum.state !='VI'&& datum.state !='PR'"
},
{
"as": "conterminous",
"calculate": "datum.state == 'HI' ? 'hi' : (datum.state == 'AK' ? 'ak' : 'continent')"
}
],
"height": 600,
"config": {
"view": {
"stroke": null
},
"title": {
"fontSize": 28,
"font": "Roboto",
"fontWeight": 300
}
},
"mark": {
"strokeWidth": 0.2,
"interpolate": "monotone",
"type": "line"
},
"data": {
"url": "https://vega.github.io/vega-lite/data/zipcodes.csv"
},
"width": 1000,
"$schema": "https://vega.github.io/schema/vega-lite/v4.json",
"projection": {
"type": "albersUsa"
},
"title": "US connected zip codes",
"encoding": {
"color": {
"value": "#666"
},
"latitude": {
"field": "latitude",
"type": "quantitative"
},
"longitude": {
"field": "longitude",
"type": "quantitative"
},
"order": {
"field": "zip_code",
"type": "quantitative"
},
"detail": {
"field": "conterminous",
"type": "nominal"
}
}
}