Skip to main content
100%

Fork of Fork of ICE7 Pie Chart

✓ Published34🌍 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
MIT Licensed

Similar vizzes