Skip to main content
100%

BeiJing

✓ Published0🌍 Public
Vvivianaaai@qq.com
Last edited Nov 7, 2023
Created on Nov 7, 2023
Forked from Volcano

This example visualizes the administrative districts of Beijing using a GeoJSON dataset. It renders the district boundaries as SVG paths on a 1600x800 canvas, with each polygon outlined in black and left unfilled. The visualization uses D3.js v6, specifically leveraging `d3.geoNaturalEarth1()` for map projection, `d3.geoPath()` for converting geographic coordinates to SVG path data, and `d3.json()` for loading external data. The code also includes commented-out alternatives for other projections like Mercator and Mollweide, as well as a disabled label overlay.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

MIT Licensed

Similar vizzes