Skip to main content
100%

Pie Chart (ICE 7)

✓ Published0🌍 Public
AAashish Pandey
Last edited Mar 28, 2022
Created on Mar 28, 2022
Forked from HTML Starter

This example displays a pie chart of the top 10 countries with the most COVID-19 cases, using data loaded from a CSV file via d3.csv. The chart is rendered as SVG paths, with each segment sized by the "Total Cases" value and filled using a d3.scaleOrdinal color scale. A legend on the right pairs each country with its total, formatted in thousands (e.g., "1.234K"). The code uses d3.pie, d3.arc, and d3.select to build and position the chart.

AI-generated description
MIT Licensed

Similar vizzes