Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

中国地图

Public visualization

Viewing a saved revision (read-only)

a2450d6916fa48dfbb0339eb094ed034

中国地图

0 stars0🌍 Public
Zzhuomo-maker
Last edited Jun 26, 2023
Created on Jun 26, 2023

A choropleth map of China renders each province as an SVG path using a Mercator projection centered on the country. The D3.js code loads GeoJSON map data and applies a categorical color scale, with provinces highlighted yellow on mouseover. Province names are positioned using projected centroid coordinates, with a vertical offset applied to prevent overlap between Macau and Hong Kong labels. The visualization demonstrates D3’s geographic path generator (`d3.geoPath`) and projection utilities.

AI-generated description

A visualization constructed using the vega-lite-api.