Skip to main content
100%

map of d3

✓ Published1🌍 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

MIT Licensed

Similar vizzes