Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pie Chart

Public visualization

Pie Chart

0 stars0🌍 Public
GGeorge Oyosa
Last edited Apr 11, 2024
Created on Apr 11, 2024
Forked from Hello VizHub

This pie chart displays the top five countries by total reported COVID-19 cases, using a dataset from a GitHub-hosted CSV file. The visualization loads data with `d3.csv`, sorts it in descending order, and slices the first five entries. It renders slices using `d3.arc` and `d3.pie` within an SVG, with labels positioned via `label.centroid`. A categorical color scale from `d3.scaleOrdinal` distinguishes each country, while solid white strokes separate the segments.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed