🌍 Public
Fork of Loading Data with React & D3
This example demonstrates how to load and summarize a CSV dataset of CSS named colors. It displays a text summary showing the data size in kilobytes, row count, and column count, or shows "Loading..." while fetching. The visualization uses React hooks (`useState`, `useEffect`) to manage asynchronous loading, and the D3 `csv` function to parse the remote data. The summary text is generated by a custom `message` function that uses D3’s `csvFormat` to calculate byte length.
AI-generated descriptionA program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.
MIT Licensed
Comments
Sign in to join the discussion.