Skip to main content
100%

Piechart ICE7

✓ Published0🌍 Public
Pprathyusha-reddy-arch
Last edited Mar 30, 2023
Created on Mar 29, 2023
Forked from D3 Starter

This pie chart visualizes COVID-19 death counts across different countries for 2019–2020, with each slice labeled in thousands and a legend listing country names and corresponding values. The chart uses D3 v5’s `pie` and `arc` generators to compute slice angles and paths, along with `scaleOrdinal` for color mapping and `csv` to fetch the dataset from a GitHub gist. Labels and legends are appended as SVG text and rect elements, with the arc’s centroid method positioning the value labels.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes