Skip to main content
100%

Country

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

This example displays a geographic map of the United Arab Emirates, rendered as a single SVG path on a blank canvas. It loads world country boundaries from the world-atlas TopoJSON dataset and extracts the UAE geometry using `topojson.feature`. The map uses a Mercator projection fitted to the region via `d3.geoMercator().fitSize`, with the outline drawn using `d3.geoPath`. The code demonstrates asynchronous data loading with `d3.json` and basic D3 v5 selection and append methods.

AI-generated description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes