ICE7 by Sujit, Pie Chart
✓ Published1🌍 Public
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 descriptionICE 7 Question 2 by Sujit Rayudu.
MIT Licensed