Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Fork of ICE - 7 Pie chart viz

Public visualization

Fork of ICE - 7 Pie chart viz

0 stars0๐ŸŒ 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

Comments

Sign in to join the discussion.

MIT Licensed