{"version":"1.0","type":"rich","title":"Loading data with React and D3","description":"This example demonstrates how to load and display a dataset using React state and D3 utilities. It fetches a CSV file of CSS named colors with `d3.csv` and stores it via the `useState` hook, showing a loading message until the data arrives. Once loaded, the visualization renders each color as an SVG path using the `d3.arc` generator, with the fill color mapped from the CSV’s `RGB hex value` column. The app uses React 16.9 and D3 v7, combining React’s declarative rendering with D3’s data transformation and arc layout functions.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/76e07300dd084b08851b8896952ae339?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}