{"version":"1.0","type":"rich","title":"Render D3 + React","description":"This example shows how React renders a pie chart from CSS named colors, where each slice’s fill matches its corresponding RGB hex value. The code loads CSV data via `d3.csv` inside a React component, using `useState` to hold the data while displaying a loading message. The chart is drawn with `d3.pie` and `d3.arc` to generate SVG paths, translated to the center of a 960×500 viewport. React 18 and D3 v7 are loaded from CDNs, with SVG output handled declaratively through JSX.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3e61f2c5bd6547ceb585265633448fe6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}