Skip to main content
100%

Fork of Pie Chart

✓ Published1🌍 Public
Ssumanthpenna0221@gmail.com
Last edited Nov 6, 2024
Created on Nov 5, 2024
Forked from Pie Chart

This fork of a pie chart visualizes population distribution by continent using a categorical color scale and labeled slices. The D3.js code loads CSV data from a GitHub gist, applies `d3.pie` to compute arc angles, and renders the result as SVG paths with `d3.arc`. Text labels are positioned at each slice’s centroid using `arc.centroid`. The chart is centered within a fixed 500×500 SVG canvas, with white stroke separators between slices and a clean, bordered container styled by CSS.

AI-generated description

A demonstration of Pie chart.

MIT Licensed

Similar vizzes