Skip to main content
100%

ICE - 7 Pie Chart

✓ Published2🌍 Public
SSaiSree0122
Last edited Jul 2, 2022
Created on Jul 1, 2022

This pie chart visualizes COVID-19 death percentages across U.S. states, with each slice colored by a categorical scale and labeled through a legend with state names and values. The chart uses d3.pie and d3.arc to generate SVG paths from a CSV dataset, while d3.scaleOrdinal assigns section colors. The legend, rendered with SVG rectangles and text, displays state names and percentage values formatted with d3.format. The code fetches data via a Gist URL using d3.csv and renders all elements synchronously in an SVG container.

AI-generated description
MIT Licensed

Similar vizzes