constshapes=JSON.parse(JSON.stringify(stateShapes));// do a copy, rather than mutate
for(constfofshapes.features){
f.properties.value=index.get(f.properties.name);
}
returnshapes;
}
index1=newMap(data.map(d=>[d.State,d]))
test={
constshapes=JSON.parse(JSON.stringify(stateShapes));// do a copy, rather than mutate
for(constfofshapes.features){
f.properties.data=index1.get(f.properties.name);
}
returnshapes;
}
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.