{"version":"1.0","type":"rich","title":"Loading data with React and D3","description":"This example demonstrates how to load and summarize a CSV dataset using D3 and React. The code fetches a list of CSS named colors via `d3.csv` and stores the result in React state with the `useState` and `useEffect` hooks. While loading, the display shows “loading,” then renders a message generated by `d3.csvFormat` that reports the data’s size in kilobytes, row count, and column count. React 16.9 and D3 v5 are used together, with the data sourced from a GitHub gist.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/3092805840cc490585f7f3c5343d3e68?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}