Skip to main content
100%

Task9_Question1

✓ Published0🌍 Public
KKeerthi
Last edited Apr 12, 2024
Created on Apr 12, 2024
Forked from Q2

A pie chart visualizes the distribution of patient counts by race, with each slice labeled directly and accompanied by a color-coded legend. The chart loads CSV data from a GitHub gist and uses D3 v7 APIs including `d3.rollup` to aggregate counts, `d3.pie` for layout, `d3.arc` for slice geometry, and `scaleOrdinal` with `schemeCategory10` for colors. Labels are positioned using `arcGenerator.centroid`, and the SVG rendering is centered within a 400×400 canvas.

AI-generated description

A demonstration of Pie chart.

MIT Licensed

Similar vizzes