{"version":"1.0","type":"rich","title":"Rendering data with React","description":"This example demonstrates how to render a pie chart of CSS named colors using React and D3. The code loads color data from a CSV file and displays each color as a slice of a circle. It uses React hooks like `useState` and `useEffect` to fetch data asynchronously with `d3.csv`, then maps the data points to `<path>` elements. The `d3.arc` function computes the shape of each slice based on computed start and end angles. The visualization is rendered as an SVG inside a React component.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/46c372721c4a43cd9bdf4b221eddb9fb?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}