Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

question2-task9

Public visualization

Viewing a saved revision (read-only)

c0aa4ec1188047e2b9c8d3d6479e32b7

question2-task9

0 stars0🌍 Public
AAbdul Kareem
Last edited Apr 22, 2024
Created on Apr 22, 2024
Forked from Hello VizHub

This example displays a pie chart of deaths in 2023 caused by air pollution, broken down by country. It uses D3.js (d3.pie, d3.arc, d3.scaleOrdinal) to generate SVG arcs with labeled segment percentages and an interactive legend listing each country with its corresponding death count. The data is loaded as CSV from a GitHub gist, and the chart colors each slice with a fixed palette.

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.