Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

ICE - 7 Pie Chart

Public visualization

Viewing a saved revision (read-only)

216d3e6386d64662850ecf4899aee69b

ICE - 7 Pie Chart

0 stars0🌍 Public
Cchakritha06
Last edited Jul 2, 2022
Created on Jul 2, 2022

This example visualizes the top 10 most populated U.S. states as a pie chart, with each slice colored distinctly and accompanied by a legend showing state names and population values (in thousands). It uses d3.csv to load data from a GitHub gist, then applies d3.pie, d3.arc, and d3.scaleOrdinal to generate the SVG paths and colors. The chart is rendered with SVG elements, and legends are appended dynamically with text and rectangular markers.

AI-generated description