{"version":"1.0","type":"rich","title":"Fork of Pie Chart (with labels) with d3","description":"This example displays a pie chart of the top five US states by GDP using D3 v4 within a React application. The chart visualizes state rankings, with each slice labeled by state name, alongside a legend that pairs colors with state names and GDP values. The code builds the visualization by computing arc paths with `d3.arc`, generating slice data via `d3.pie`, and applying color scales with `d3.scaleOrdinal`. Data is loaded from a remote CSV file using D3's `csv` function. The SVG rendering is handled directly through D3's append and attribute methods, with a React component managing the data-fetching lifecycle.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/f1b5b146612044aaab93d63ac266c94e?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}