Skip to main content
100%

Loading data with d3.csv

✓ Published1🌍 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.

MIT Licensed

Similar vizzes