Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart

Public visualization

Viewing a saved revision (read-only)

a85f0ba3c5954adcbb20a1df7d18e595

Fork of Pie Chart

0 stars1🌍 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.