Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of ICE7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

70fbf362c3c345988ad7c9bc590f8203

Fork of Fork of ICE7 Pie Chart

0 stars34🌍 Public
Vvidhyanamini
Last edited Mar 27, 2022
Created on Mar 26, 2022

This pie chart displays the top ten cricketers and their total runs, with each slice’s area proportional to a player’s run count and a legend listing names and values. The code loads data from a JSON file using `d3.json`, then applies `d3.pie` and `d3.arc` to generate the SVG paths, while `d3.scaleOrdinal` with `d3.schemeCategory10` assigns slice colors. The chart renders as an SVG and includes a legend built from appended groups, rects, and text elements.

AI-generated description