Skip to main content
100%

Fork of Fork of Fork of HTML Starter

✓ Published0🌍 Public
Mmukundakrishna.r@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

This interactive pie chart visualizes country-level data for 2022, loading CSV data from a GitHub gist via the `d3.csv` API. It uses D3 v7’s `pie()` and `arc()` generators to compute and draw SVG paths for each slice, with colors assigned by `scaleOrdinal` and `schemeCategory10`. Hovering over a slice or label changes its fill to orange, providing immediate feedback. The chart is rendered inside a static SVG container, with text labels positioned at arc centroids using `arcGenerator.centroid()`.

AI-generated description
MIT Licensed

Similar vizzes