Skip to main content
100%

Activity 8 Country

✓ Published0🌍 Public
Hharipriyaa07
Last edited Jul 21, 2023
Created on Jul 10, 2023
Forked from Hello VizHub

This example displays a map of South Korea rendered as an SVG using D3 v5 and TopoJSON data from the world-atlas package. It extracts the country’s geometry with `topojson.feature`, fits a `d3.geoMercator` projection to the shape with `fitSize`, and draws the path via `d3.geoPath`. The code loads D3 from a CDN script tag and appends the map to the page body.

AI-generated description

A demonstration of how to start using D3 version 6.

<iframe width="560" height="315" src="https://www.youtube.com/embed/Ia_DwVMXwgk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>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