🌍 Public
Viewing a saved revision (read-only)
01622fec4e464b949192b3e87530607a
Fork of visualizing the China map
This example displays a map of China’s administrative divisions, rendered as a single green SVG path with a teal outline. It loads GeoJSON data converted from TopoJSON via `topojson.feature` and `topojson.presimplify`, then projects it using `d3.geoMercator` and draws it with `d3.geoPath`. The map refits to the SVG container on window resize, and a custom `d3.geoTransform` applies simplification based on a threshold during rendering.
AI-generated descriptionVisualizing the country map of China using d3.js resources