Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading data with d3.csv

Public visualization

Viewing a saved revision (read-only)

12bfa643dedd4a5daa2bedab0bcc6740

Loading data with d3.csv

0 stars1🌍 Public
NNita
Last edited Nov 13, 2020
Created on Jun 24, 2020
Forked from d3.csv

This example demonstrates how to load and parse a CSV dataset using the d3.csv method within a React application. It fetches a remote CSV file containing nutritional profile data and processes the returned rows into objects with Nutrient and Value properties. The code also uses native JavaScript Promise methods alongside React’s render method to handle the asynchronous data loading, though the visualization output itself remains minimal. The example relies on d3.v5 and React 16.10, with the data sourced from a GitHub Gist.

AI-generated description

React Starter code.