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)

f19858f974774c1f8f9875508c03eb41

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