Skip to main content
100%

Fork of ice7

✓ Published0🌍 Public
TTekmal-Bhavana
Last edited Mar 30, 2023
Created on Mar 30, 2023

This example shows the top 10 countries by COVID-19 deaths using a static pie chart rendered as SVG. The code loads CSV data from a GitHub gist via `d3.csv`, computes each country’s death count as a percentage, and maps those values to pie segments using `d3.pie` and `d3.arc`. Color encoding is handled with `d3.scaleOrdinal`, while a legend with rectangles and text labels is built manually using D3’s selection and append methods. The chart includes a heading and numeric percentage labels formatted with `d3.format`.

AI-generated description
MIT Licensed

Similar vizzes