Skip to main content
100%

ICE - 7 Pie Chart

✓ Published0🌍 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
MIT Licensed

Similar vizzes