Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Visualizing Data with React & D3

Public visualization

Visualizing Data with React & D3

0 stars0🌍 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

Comments

Sign in to join the discussion.

MIT Licensed