Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

China City Basemap

Public visualization

Viewing a saved revision (read-only)

790cfba16e0845ea9e3b74c736718d6b

China City Basemap

2 stars5🌍 Public
ZZ-Richard
Last edited Jun 25, 2020
Created on Jun 25, 2020

This example displays a basemap of China’s cities and provinces as a static SVG map, rendered using the D3.js library (v5) and its `geoMercator` projection, `geoPath`, and `select` APIs. It loads TopoJSON data from a GitHub gist, converts it to GeoJSON features via the `topojson` package’s `feature` function, and draws each region as a path with an SVG fill. The map’s projection is centered on China with a specific scale, and the country outlines are styled with a green fill and semi-transparent black stroke.

AI-generated description