{"version":"1.0","type":"rich","title":"Loading Data with React & D3r Pie Colors","description":"This example shows a pie chart of named CSS colors, rendering each color as a slice in a full-circle visualization using React and D3 v7. The code loads color data from a CSV file via `d3.csv` during a `useEffect` hook, displaying a loading message until the data arrives. The `d3.pie` layout and `d3.arc` generator create each slice, with the fill set to the color’s RGB hex value from the dataset. The chart is drawn as SVG within a React component, with the pie centered on a 960×500 canvas.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/8d3769884cd545dbac13b199f2ceddc6?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}