Skip to main content
100%

Let's make a face with D3.js!

✓ Published0🌍 Public
DDifan Gu
Last edited Jul 11, 2020
Created on Jul 11, 2020

This example visualizes the world map as a set of orange countries on a steel-blue spherical background, with hover states that turn a country red. The shape data comes from the world-atlas TopoJSON and TSV files, which are joined to label each country with its name. The visualization uses the D3.js `geoPath` and `geoNaturalEarth1` projection to render the map, and the topojson `feature` function to convert TopoJSON topology into GeoJSON features. A zoom interaction is enabled through D3’s `zoom` event, which transforms the map group.

AI-generated description
MIT Licensed

Similar vizzes