{"version":"1.0","type":"rich","title":"Rendering Data with React","description":"This example renders a color dataset as a half-circle pie chart using React and D3. The code loads CSV data from a GitHub gist via `d3.csv`, then maps each row to an SVG `<path>` element. It uses the `arc()` generator from D3 to calculate the shape for each segment, with angles computed proportionally from the data length. React's `useState` and `useEffect` hooks manage asynchronous data loading, while the SVG is rendered declaratively inside the component. The chart displays each color according to its `RGB hex value` field.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/918f83065e6b41e6a6e0f4a5d8754190?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}