Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart Part e.g.1

Public visualization

Making a Bar Chart Part e.g.1

0 stars0🌍 Public
Yyuzhang21
Last edited Sep 23, 2019
Created on Sep 22, 2019

This example demonstrates a minimal React and D3 integration that loads CSV data and displays it as a raw text dump. The application fetches a CSV file containing CSS named colors using D3’s `csv` utility, then passes the parsed array to React’s `useState` and `useEffect` hooks. While the code includes commented-out scaffolding for a bar chart with `scaleBand`, `scaleLinear`, and `max`, the active rendering simply prints the first data row to the console and shows a loading message. The final visualization is not yet implemented, only the data-loading pipeline is functional.

AI-generated description

A program that loads in some data for bar chart using D3 utilities, and uses React to render the data.

Comments

Sign in to join the discussion.

MIT Licensed