textDomain=["Serial cartographer (here in 2019)","New in 2020"]
colorscale=['#03045e','#0077b6']
## Imports
import{legend}from"@d3/color-legend"
import{Choropleth}from"@d3/choropleth"
## Sources
https://observablehq.com/@d3/world-choropleth
world=FileAttachment("countries-50m.json").json()
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.