{"version":"1.0","type":"rich","title":"Dataviz 2020_Ep16 - 10. Loading Data with React and D3","description":"This example demonstrates how to load and summarize a CSV dataset using D3 and React. It displays the file size in kilobytes, row count, and column count from the CSS named colors dataset. The code uses React’s `useState` and `useEffect` hooks to fetch the data via D3’s `csv` function from a GitHub gist URL, then formats it with `d3.csvFormat` and displays the result. React renders the summary text within a `<pre>` element while the data loads.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/ac90ed667ee744588059876744a74bab?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}