Skip to main content
100%

ICE7 by Sujit, Pie Chart

✓ Published1🌍 Public
Ssujitrayudu01@gmail.com
Last edited Apr 11, 2024
Created on Mar 27, 2024
Forked from [TEST] Pie Chart

This pie chart displays the Premier League’s top goal scorers, using color-coded slices to represent each player’s goal tally. The visualization first shows the overall distribution of goals before explaining the rendering: D3’s `pie` and `arc` generators create the chart, while `scaleOrdinal` maps player names to a pastel color palette. A legend on the right identifies each player, with data loaded from a CSV file. The code explicitly uses D3 v5 APIs like `d3.csv`, `d3.pie`, and `d3.arc` to build the SVG-based graphic, positioning labels via a secondary `labelArc` for clarity.

AI-generated description

ICE 7 Question 2 by Sujit Rayudu.

MIT Licensed

Similar vizzes