{"version":"1.0","type":"rich","title":"Loading Data with React and D3","description":"This example demonstrates how React state and D3 can work together to asynchronously load and summarize a CSV dataset of CSS named colors. The app renders a text summary displaying the file size in kilobytes, row count, and column count once the data arrives. The code uses `d3.csv` inside a React `useEffect` hook to fetch the remote CSV, while `useState` manages the loading state. The final message is formatted using `d3.csvFormat` to calculate the data’s byte length, with ReactDOM rendering the result as SVG-adjacent text in a `<pre>` element.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/d37b1a3f0eca46838758e37b2a342602?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}