Skip to main content
100%

cheat trick ... map

✓ Published1🌍 Public
YYanxxx447
Last edited Jan 11, 2021
Created on Jan 11, 2021
Forked from make a map

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes