Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

question2-task9

Public visualization

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.

Comments

Sign in to join the discussion.

MIT Licensed