{"version":"1.0","type":"rich","title":"Loading Data with React & D3 - Ronan","description":"This example shows a React component loading a CSV dataset of CSS named colors from a GitHub gist and displaying its metadata as a text summary. It demonstrates the integration of D3’s `csv` loader with React’s `useState` and `useEffect` hooks to fetch data asynchronously and store it in component state. Once loaded, React renders a custom `message` function that calculates and formats the file size in kilobytes, row count, and column count using `d3.csvFormat` and `data.columns`. While the data is pending, the interface shows a simple “Loading...” placeholder. The example uses d3.v5, React 16.9, and a plain `<pre>` element for output.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/dc06359a39ab4f308a6e8583ba4b1776?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}