Skip to main content
100%

Activity 7.1

✓ Published0🌍 Public
Hharsha13638@gmail.com
Last edited Nov 2, 2024
Created on Nov 2, 2024
Forked from Hello VizHub

This donut chart visualizes the top 10 most populous countries in 2020, with each slice scaled by population and a hover tooltip showing exact figures and percentages. It uses D3 v7 to load CSV data from a GitHub gist, generate the pie layout with `d3.pie()` and `d3.arc()`, and color slices via `d3.scaleOrdinal`. The chart renders with SVG, includes a loading indicator, error handling, and a detailed legend showing country names and population counts.

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