Skip to main content
100%

Activity 8 Country

✓ Published0🌍 Public
BBhavyaMammai
Last edited Jul 5, 2023
Created on Jul 5, 2023
Forked from Hello VizHub

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 description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes