Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Charan Fork of ICE - 7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

39b9deb43db746f98a4dfe86921bc031

Charan Fork of ICE - 7 Pie Chart

0 stars1🌍 Public
Ccharanchand9
Last edited Jul 3, 2022
Created on Jul 3, 2022

This visualization shows the top 10 most populated US states in a pie chart with a legend displaying each state’s name and population value. The chart is rendered in SVG using D3.js v5, with data loaded from a CSV file via `d3.csv`. The pie layout uses `d3.pie` and `d3.arc` to generate segments, while `d3.scaleOrdinal` assigns colors to each slice. Labels are positioned using the arc’s centroid method, and the legend is built with SVG rectangles and text elements.

AI-generated description