Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Axes with React & D3

Public visualization

Axes with React & D3

0 stars1🌍 Public
Jjwesterlund412
Last edited Jan 10, 2022
Created on Jan 8, 2022
Forked from Margin Convention

A bar chart displays the top 10 countries by 2020 population using CSS named color data. The React component manages state with `useState` and `useEffect`, loading CSV data via `d3.csv` and parsing it with a row function. D3 scales `scaleBand` and `scaleLinear` position the bars, while custom tick lines and labels render axes within an SVG. The visualization demonstrates integrating React rendering with D3 utilities for data loading and scaling.

AI-generated description

A program that loads in some data about CSS named colors using D3 utitlities, and uses React state to render the data.

Comments

Sign in to join the discussion.

MIT Licensed