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
SSabin Bhandari
Last edited May 29, 2021
Created on May 29, 2021

This example shows a horizontal bar chart of the ten most populous countries in 2020, with countries listed on the y-axis and population totals on the x-axis. It combines React state management with D3 utilities, using `d3.csv` to load data and `scaleBand`, `scaleLinear`, and `max` to compute positions and scales. React renders the SVG elements, while D3 generates the tick marks and grid lines for both axes. The source data comes from a UN population dataset hosted as a CSV file.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed