DV2_6_World Map
This interactive map displays world countries using a natural Earth projection, with hover highlighting and zoom/pan capabilities. The visualization loads geographic data from the World Atlas TopoJSON files and renders country boundaries as SVG paths via d3.geoPath. Country names are joined from the accompanying TSV dataset using ISO numeric codes, displayed as tooltips through SVG title elements. The d3.zoom behavior enables interactive exploration, while the color scheme distinguishes landmasses, oceans, and hover states. The code leverages d3.json, d3.tsv, and topojson.feature for data processing and d3.geoNaturalEarth1 for the projection.
AI-generated descriptionInteractive Worldmap with geoNaturalEarth1 view.
Bostock: Dataset for title function to return country names
Reference: