Skip to main content
100%

Visualizing Data with React & D3

✓ Published0🌍 Public
Iiblub
Last edited Sep 25, 2021
Created on Sep 25, 2021

This example displays metadata about a CSS Named Colors dataset loaded from a CSV file, showing the file size in kilobytes, row count, and column count as plain text. Using D3 v5 and React, the code demonstrates two equivalent approaches: `d3.csv` with promises, and the Fetch API combined with `async`/`await` and `d3.csvParse`. The rendering updates a `<pre>` element’s text content, highlighting different methods for asynchronous data loading and parsing.

AI-generated description
MIT Licensed

Similar vizzes