Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Piechart_Jasvitha-ICE-7

Public visualization

Viewing a saved revision (read-only)

b518e87ddfd9496eb52ee131d021ecd4

Piechart_Jasvitha-ICE-7

0 stars0🌍 Public
JJasvitha Allamsetty
Last edited Mar 26, 2023
Created on Mar 25, 2023
Forked from D3 Starter

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 description

A demonstration of how to start using D3 version 6.