Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

loading data in react

Public visualization

loading data in react

0 stars0🌍 Public
Nnexus1058
Last edited Jan 25, 2021
Created on Jan 25, 2021

This example demonstrates how to load and parse CSV data in a React application using D3’s built-in `d3.csv` method. It displays a summary of the dataset, including its size in kilobytes, row count, and column count, in a `<pre>` element. The code fetches a remote CSV file of named CSS colors from a GitHub gist, then uses `d3.csvFormat` to calculate the data’s byte size and `data.columns` to determine the number of columns. The visualization highlights asynchronous data loading with promise-based handling in D3 v5.

AI-generated description

A program that loads and parses some csv data

Comments

Sign in to join the discussion.

MIT Licensed