Japan Map
✓ Published0🌍 Public
This map of Japan displays its prefectures as semi-transparent purple regions, with each area labeled by its name. The visualization uses `d3.geoMercator` for projection and `d3.geoPath` to render GeoJSON features from a TopoJSON source of Japanese towns. A sequential color scale, `interpolatePurples`, shades each state based on its position in the dataset, while text labels are positioned using `pathGen.centroid`. The map is rendered as SVG and supports zooming via D3’s `zoom` behavior.
AI-generated descriptionDemonstrates fundamental DOM manipulation using D3.js by making a smiley face whose eyebrows move.
MIT Licensed