Public
Edited
Apr 27, 2023
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
height = 360
Insert cell
mergedData = gridData.map(d => ({...d, rate: sponsorRateMap[d.name]}))
Insert cell
gridData = d3.json("https://raw.githubusercontent.com/kristw/gridmap-layout-usa/master/dist/gridmap-layout-usa.json")
Insert cell
sponsorRateMap = {
const result = {}
sponsorRate.map(d => result[d.state] = d.rate)
return result
}
Insert cell
Insert cell
Insert cell

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.
Learn more