{"version":"1.0","type":"rich","title":"Rendering data with React and D3 number 2","description":"This example shows the CSS Named Colors dataset rendered as a donut chart, where each slice represents a named color. Using React for component structure and D3 v6 for data loading and shape generation, the code loads CSV data via `d3.csv`, computes pie angles with `pie()`, and draws arcs with `arc()`. The SVG paths are filled with each color’s RGB hex value, producing a colorful circular visualization. React state and hooks manage the asynchronous data loading, displaying a loading message until the data arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/91df8898036945d1bac3c29b0eaa771d?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}