Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Visualizing Data With React & D3

Public visualization

Viewing a saved revision (read-only)

651679005c40410a8a2522dccb4ff1e4

Visualizing Data With React & D3

0 stars1🌍 Public
AAdrianna87
Last edited Oct 3, 2022
Created on Oct 2, 2022

This bar chart visualizes the top ten baby names from an 1880 dataset, loaded via `d3.csv` from a GitHub gist. React manages the component state for loading and rendering, while D3 utilities (`scaleBand`, `scaleLinear`, `max`) compute the scales and axis ticks. The SVG output displays horizontal bars with labeled axes, where each rect’s width reflects name frequency. React’s `useEffect` and `useState` handle data fetching, and the chart updates the visualization once the CSV is parsed.

AI-generated description

A program that visualizes data using D3 utilities and uses React to render data.