Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Fork of ICE - 7 Pie Chart Nagasai

Public visualization

Fork of Fork of Fork of ICE - 7 Pie Chart Nagasai

0 stars0🌍 Public
Nnagasai.mandalapu@gmail.com
Last edited Mar 28, 2024
Created on Mar 28, 2024

This example visualizes soccer team point totals as a pie chart, with each slice representing a team and its size proportional to points earned. The code uses D3.js v7 APIs including `d3.pie()`, `d3.arc()`, and `d3.scaleOrdinal` with the `schemeCategory10` color palette. Data is loaded via `d3.csv()` from a remote GitHub gist, then filtered to extract team names and points. SVG paths are drawn for slices, and labels are positioned using an outer arc generator with `centroid()` for readability.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed