Public
Edited
Mar 10, 2023
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
center = projection([positionX, positionY])
Insert cell
Insert cell
isInsideCircle = (cell) => {
//compute distance from circle center to cell center
const d = Math.hypot(
positionX - cell.posGeo.x - resolution / 2,
positionY - cell.posGeo.y - resolution / 2
);
return d <= radiusKM * 1000;
}
Insert cell
Insert cell
popCircle = popShare(isInsideCircle, positionX, positionY, radiusKM)
Insert cell
Insert cell
share = popCircle[0] / popCircle[1]
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