population2radius=d3.scaleSqrt()// instead of scaleLinear()
.domain([0,2e9])
.range([0,300])
population2radius(1.386e9)// China’s 1.386 billion citizens are represented by a circle of radius = 250px
population2radius(127e6)// Japan’s population of 127 millions is represented by a circle of radius = 76px
population2radius(427e3)// Brunei shows up as a small circle
color=d3.scaleOrdinal(["green","red","blue"])
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.