{"version":"1.0","type":"rich","title":"loading data with react and d3","description":"This example demonstrates how to load and summarize external CSV data within a React application using D3.js. The visualization presents a plain-text summary of the dataset’s size, row count, and column count, displayed in a large `<pre>` element. The code uses React’s `useState` and `useEffect` hooks to fetch the CSV from a GitHub gist via `d3.csv`, then formats the summary with `d3.csvFormat`. The `message.js` module computes the file size in kilobytes and counts rows and columns, while `ReactDOM.render` mounts the component to an SVG-rendered page.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/7cadd0286cc14dd5acbc2ef3f6ba0341?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}