Skip to main content
100%

Fork of pie chart

✓ Published0🌍 Public
Ddandudivya98@gmail.com
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from D3 Starter

A fork of a pie chart example visualizes COVID-19 case data from a CSV file, showing three categories (Infected, Recovered, Died) as colored slices with proportional labels and a legend. The D3 v5 code uses `d3.csv` to load the data, `d3.pie` to compute arc segments, and `d3.arc` with an inner radius of zero to generate the paths. Slice colors come from `d3.scaleOrdinal` with a manual range, and text labels are positioned using the arc’s centroid method. The SVG output is centered within a 980×550 canvas.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes