Published
Edited
Mar 29, 2022
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
vaccinationCounts.sort((a,b) => a.fractionSecondDose - b.fractionSecondDose)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
merge = (dataCleaned, geojson) => {
const features = geojson.features
features.forEach(feature => {
const match = dataCleaned.find(d => d.county === feature.properties.NAMELABEL)
feature.properties = {
...feature.properties,
...match,
}
})

return {
type: geojson.type,
crs: geojson.crs,
features: features.sort((a,b) => b.properties.count - a.properties.count),
}
}
Insert cell
markCounties = merge(clean(fullData), counties)
// markCounties = {
// counties.features.forEach(county => {
// const match = countyCounts.find(d => d.county === county.properties.NAMELABEL)
// county.properties = {
// ...county.properties,
// ...match,
// }
// })

// return {
// type: counties.type,
// crs: counties.crs,
// features: counties.features.sort((a,b) => b.properties.count - a.properties.count),
// }
// }
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
// Note: PointLayere here has been updated vs earlier version, now handles non-point geometries
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more