Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Let's make a map with D3.js!

Public visualization

Viewing a saved revision (read-only)

4dc1f139b715433c87dd624d2e483697

Let's make a map with D3.js!

0 stars1🌍 Public
Cchaimmaeee
Last edited Nov 26, 2020
Created on Nov 26, 2020

This example visualizes a world map using D3.js with a blue sphere background and green country shapes. It loads geographic data from an external JSON file and renders it as SVG paths using the `d3.geoPath` and `d3.geoNaturalEarth1` projection. The code employs TopoJSON’s `feature` method (though not yet called in the visible portion) and logs the fetched data to the console. The styles define the sphere’s fill color and country borders with a low stroke opacity.

AI-generated description