Skip to main content
100%

Fork of Pie Chart (with labels) with d3

✓ Published0🌍 Public
SSweetierams
Last edited Jul 3, 2022
Created on Jul 3, 2022

This example visualizes the top 10 US states by GDP as a donut chart with interactive tooltips. The visualization uses d3.arc and d3.pie to generate SVG paths, while d3.scaleOrdinal assigns categorical colors. Hovering over a segment highlights it and displays a tooltip showing the state name and value. Data is loaded from a CSV file using d3.csv, with the top ten rows selected for display in a React component using hooks.

AI-generated description
MIT Licensed

Similar vizzes