🌍 Public
Viewing a saved revision (read-only)
12719d6a0b8b4aa6ac25c27e232430f9
Loading and Parsing CSV
This example demonstrates how to load and parse a CSV file in a React application, displaying a message with the row count, column count, and total data size. The code uses D3 v5's `csv` function to fetch the named CSS colors dataset from a GitHub gist, storing the parsed result in state via React hooks. Once loaded, the component formats a summary using `d3.csvFormat` to estimate the data size in kilobytes. The visualization is minimal, focusing solely on confirming successful data ingestion rather than rendering charts.
AI-generated descriptionA bare minimum HTML page demonstrating use of CSS and JavaScript.
See also React Starter.