Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Task1_Q1

Public visualization

Viewing a saved revision (read-only)

38faef98ff064342bd6b2b7eda65a4c7

Task1_Q1

0 stars1🌍 Public
LLakshmi Keerthi
Last edited Apr 22, 2024
Created on Apr 21, 2024
Forked from Hello VizHub

This pie chart visualizes continent-wise COVID-19 deaths in 2023, using seven color-coded slices with percentage labels and a legend on the right. It loads data from a CSV file, parses it with `d3.csvParse`, and calculates the pie layout using `d3.pie()` and `d3.arc()`. A color scale with `d3.scaleOrdinal` and `d3.schemeCategory10` assigns slice colors. Interactive tooltips appear on mouseover, showing exact death counts per continent.

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.