Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

map of d3

Public visualization

Viewing a saved revision (read-only)

89e6ecf3a1ff4134b25ebc710602b7d1

map of d3

0 stars1🌍 Public
HHillKinsh
Last edited Dec 27, 2020
Created on Dec 27, 2020
Forked from 大黄脸

This map of d3 displays the world’s countries as green, stroked polygons, using a Mercator projection. The data comes from the world-atlas GeoJSON file, which is loaded via d3.json and converted into geographic features with topojson’s feature function. The code uses d3.geoPath and d3.geoMercator to generate the SVG paths, while d3.select appends each country’s shape to the canvas. Population figures from the included data.csv are not visualized in this example.

AI-generated description

A map of d3js. HTML page demonstrating use of CSS and JavaScript