Skip to main content
100%

Fork of ICE - 7 Pie chart viz

✓ Published0🌍 Public
AArruSkywalker
Last edited Jul 2, 2022
Created on Jul 2, 2022

This pie chart visualizes the percentage distribution of COVID-19 cases among the top five countries, with each slice labeled and a corresponding legend. Built with D3 v5, the example uses the `pie` layout function to compute arc segments and the `arc` generator to create the SVG paths. Data is loaded from a CSV file via the `csv` method in `getData.js` and `index.js`, with each country's percentage represented by a distinct color from a manual palette. The chart includes an interactive legend that pairs colored rectangles with country names and values.

AI-generated description
MIT Licensed

Similar vizzes