Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Axes with React & D3

Public visualization

Axes with React & D3

0 stars0🌍 Public
Jjordancampbell23
Last edited Dec 11, 2021
Created on Dec 11, 2021

This example shows a horizontal bar chart of the ten most populous countries in 2020, rendered as SVG elements. React manages the component state and renders each bar as a `<rect>`, while D3 utilities handle data loading with `d3.csv` and scaling with `scaleBand` and `scaleLinear`. The data comes from a UN population dataset hosted as a CSV file. The chart updates reactively when the asynchronous data fetch completes, displaying a loading message until then.

AI-generated description

A program that loads in some data about CSS named colors using D3 utilities, and uses React to render the data as a radial burst!

Comments

Sign in to join the discussion.

MIT Licensed