Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Loading Data (Replica) with React & D3

Public visualization

Loading Data (Replica) with React & D3

0 stars0🌍 Public
FFelipe Restrepo felipollo
Last edited Sep 29, 2024
Created on Sep 25, 2024

This visualization demonstrates React managing D3-driven data loading and rendering. It displays a bar chart of the top 15 most populated countries, alongside a pie chart of CSS named colors, with data fetched via D3's `csv` utility. Using React's `useState` and `useEffect` hooks, the program loads CSV data from GitHub Gists, then renders SVG using D3's `scaleBand`, `scaleLinear`, and `arc` APIs. Axes and bars are defined as reusable React components.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React state to keep track of the data.

Comments

Sign in to join the discussion.

MIT Licensed