Activity 8 Country
✓ Published0🌍 Public
This example displays a map of Saudi Arabia using the D3.js version 5 library and the `d3.geoMercator` projection with `d3.geoPath` to render the country’s outline. It loads geographic data from the `world-atlas` TopoJSON file via `d3.json` and extracts the Saudi Arabia feature using the `topojson-client` API. The resulting SVG path visually represents the country’s boundaries on a 960 by 500 canvas, demonstrating a straightforward approach to projecting and drawing a single nation from global data.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed