geoVoronoi x() and y() accessors
✓ Published0🌍 Public
PPhilippe Rivière
Last edited Aug 28, 2019
Created on Sep 12, 2016
A rotating globe displays a Voronoi diagram of world capital cities, with each polygon filled by a categorical color from the `d3.schemeCategory10` palette. The map is rendered using `d3.geoVoronoi` and `d3.geoOrthographic`, with `d3.geoPath` projecting the spherical polygons onto an SVG canvas. Capital city coordinates are loaded from a CSV file, and the `x()` and `y()` accessors are used to map longitude and latitude while adding a small random epsilon.
AI-generated descriptionSkeletal demo for d3.geoVoronoi
by Philippe Rivière.
mit Licensed