Skip to main content
100%

中国地图

✓ Published0🌍 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.

MIT Licensed

Similar vizzes