🌍 Public
Viewing a saved revision (read-only)
e4ba90e9cd374d01b78a896bb0ef0f5f
Pie Chart (with labels) with d3
This interactive pie chart visualizes the top 10 US states by GDP, with labeled slices displayed within an SVG. The chart uses d3.pie, d3.arc, and d3.scaleOrdinal to generate and color the wedges, while mouseover events trigger tooltips that display each state’s name and value. The d3.v4 library powers the hover interactions, which adjust slice opacity and show a text-based tooltip with a background rectangle. Data is loaded from an external CSV file, and the visualization is rendered within a React component.
AI-generated description