Skip to main content
100%

BeiJing

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

This example visualizes the administrative districts of Beijing using GeoJSON data loaded from `beijing.json`. It renders a map with the districts as white polygons outlined in black, and each district displays its name in a tooltip on mouseover. The visualization uses D3 v6 with a `d3.geoNaturalEarth1` projection fitted to the SVG canvas via `projection.fitSize`, and paths are generated with `d3.geoPath`. Tooltips are implemented with the `d3-tip` library, triggered by `mouseover` and `mouseout` events.

AI-generated description

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

See also React Starter.

MIT Licensed

Similar vizzes