Skip to main content
100%

Fork of D3 Starter

✓ Published1🌍 Public
Ccsesomarajuaswini@gmail.com
Last edited Mar 28, 2026
Created on Mar 28, 2026
Forked from D3 Starter

This example shows a pie chart of student marks distribution, with each slice labeled by the student’s name. It loads CSV data from a GitHub repository, parses the marks as numbers, and uses `d3.pie()` to compute slice angles and `d3.arc()` to generate SVG path shapes. The chart applies a categorical color scale (`d3.schemeCategory10`) and positions labels using `arc.centroid()`. The visualization renders in SVG within a 500×400 viewport, using D3 v7 loaded via an import map.

AI-generated description
MIT Licensed

Similar vizzes