Skip to main content
100%

ICE - 7 Pie chart

✓ Published0🌍 Public
RRajeevMukhesh
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example visualizes the top 10 countries by COVID-19 cases as a pie chart, with each slice labeled with its percentage share. The chart is rendered as an SVG element using D3 version 5, with data fetched from a CSV file hosted on GitHub. The code employs D3’s `pie`, `arc`, and `scaleOrdinal` APIs to compute the pie segments, generate paths, and assign colors from a hardcoded palette. A legend on the right maps each country’s name to its corresponding slice and percentage value.

AI-generated description
MIT Licensed

Similar vizzes