Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Fork of Pie_chart_Us_states_density

Public visualization

Fork of Fork of Pie_chart_Us_states_density

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

A pie chart displays the population density for the top 10 US states, with a legend listing each state and its density value in thousands. The visualization is built using D3 v5, with `d3.pie` and `d3.arc` generating the chart segments, and `d3.scaleOrdinal` providing the color palette. Data is loaded asynchronously from a CSV file hosted on a GitHub gist using `d3.csv`. The chart is rendered as an SVG element, with custom styling applied through a separate CSS file for the title, legend text, and labels.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed