Skip to main content
100%

pie chart of state gdp

✓ Published0🌍 Public
TTharun Reddy
Last edited Mar 25, 2023
Created on Mar 25, 2023

A pie chart displays the top 10 US states by GDP, with each slice sized proportionally to the state’s economic output and colored using a categorical scale. The visualization loads data from a CSV file via `d3.csv` and renders the chart as SVG using `d3.arc` and `d3.pie`. Interactive tooltips appear on hover, showing the state name and GDP value, with slice opacity adjusting to highlight the selected segment. The chart is built in React with D3 v4, using `d3.scaleOrdinal` for colors and mouse event handlers for interactivity.

AI-generated description
MIT Licensed

Similar vizzes