Loading data with react
This example demonstrates how to load and summarize a CSV dataset using React-style asynchronous JavaScript with D3. It fetches a CSS named colors file from a GitHub gist, then displays the number of rows, columns, and approximate file size in kilobytes. The code uses the Fetch API with an async function, d3.csv for parsing, and d3.csvFormat for size calculation. The result is rendered into a large `<pre>` element, showcasing a minimal data-loading pattern with D3's promise-based CSV handling.