Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Pie Chart (with labels) with d3

Public visualization

Viewing a saved revision (read-only)

a6a116f2ef5b4b5fb43ce7b1de7162b4

Fork of Pie Chart (with labels) with d3

0 stars0🌍 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