Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie_chart_Us_states_density

Public visualization

Viewing a saved revision (read-only)

d3e52f7d730b436d9a166ead6fe3e098

Fork of Pie_chart_Us_states_density

0 stars1🌍 Public
SSushmareddy-gudipally
Last edited Mar 28, 2022
Created on Mar 28, 2022

This pie chart shows the top 10 U.S. states by population density, with each slice colored and labeled by state, and its value displayed in thousands. The visualization loads CSV data from a GitHub gist via `d3.csv`, then uses `d3.pie` and `d3.arc` to generate SVG paths, with `d3.scaleOrdinal` assigning a fixed color palette. A legend, built with appended SVG rectangles and texts, maps each color to its state and density value, formatted using `d3.format`. The rendering is entirely SVG-based, with custom styling from an external stylesheet.

AI-generated description