{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example displays a pie chart of CSS named colors, with each slice filled according to its RGB hex value. The code loads data from a remote CSV file using D3’s `csv` utility into React state. D3’s `pie` generator computes slice angles, while the `arc` generator produces the SVG paths rendered as React elements. The chart uses the `useEffect` hook to fetch data asynchronously, showing a “Loading...” prompt until the dataset arrives.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/a546ae57b26f413b983061a35a878f9b?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}