🌍 Public
ICE-7 Pie Chart Sandeep Babu 11821337
This pie chart visualizes the share of total goals or points contributed by each sport—football, basketball, and cricket—using data from SportsData.csv. The chart aggregates player statistics via `d3.rollup` and `d3.sum`, then renders slices with `d3.pie` and `d3.arc`, using a Tableau10 color scale from `d3.scaleOrdinal`. Labels appear on each slice using `labelArc.centroid`, and a legend lists the sports. The visualization is built with D3 v7 and rendered as SVG, with dark-themed styling applied.
AI-generated descriptionMIT Licensed
Comments
Sign in to join the discussion.