cheat trick ... map
✓ Published1🌍 Public
This example displays a world map using D3.js with the `geoNaturalEarth1` projection and `geoPath` to render country boundaries from TopoJSON data loaded from the world-atlas package. The map is interactive, as users can zoom and pan via the D3 `zoom` event, which applies a transform to the SVG group. Countries are filled with light green and turn red on hover, while country names are appended as SVG `<title>` tooltips using data from the accompanying TSV file. The visualization also includes a blue sphere outline and supports multiple geo projections through commented code.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed