🌍 Public
Viewing a saved revision (read-only)
b518e87ddfd9496eb52ee131d021ecd4
Piechart_Jasvitha-ICE-7
This pie chart displays the top 10 baby names and their counts from a CSV dataset. The visualization renders an SVG pie chart with labeled arc values, colored segments using `scaleOrdinal` with `schemeTableau10`, and a legend that pairs name and number for each category. The code loads data via `d3.csv`, sorts it descending, and builds arcs with `d3.pie` and `d3.arc`. Hovering logs values to the console, and the layout uses `d3.select` and `d3.scaleOrdinal` for styling.
AI-generated descriptionA demonstration of how to start using D3 version 6.