{"version":"1.0","type":"rich","title":"Loading Data with React & D3","description":"This example demonstrates how to load and parse a CSV file within a React context, reporting the data’s size, row count, and column count. It fetches a CSS Named Colors dataset from a GitHub gist. The primary method uses D3’s `d3.csv` function combined with a Promise chain to format the output. The code also includes commented-out alternatives using the `fetch` API with `async` and `await`, as well as a nested-Promise example, showcasing different approaches to asynchronous data loading.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/4c82c25dc54649a69a938e8772d0c344?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}