Skip to main content
100%

Fork of visualizing the China map

✓ Published0🌍 Public
Ssivamani
Last edited Mar 29, 2023
Created on Mar 29, 2023

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 description

Visualizing the country map of China using d3.js resources

MIT Licensed

Similar vizzes