Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rendering data with react & d3

Public visualization

Rendering data with react & d3

0 stars0🌍 Public
PPetko4
Last edited Aug 3, 2022
Created on Aug 3, 2022

A horizontal bar chart displays the 10 most populous countries from the UN Population 2019 dataset, fetched via d3.csv. React manages the component state and rendering, while D3's scaleBand and scaleLinear compute the bar positions and lengths. The visualization uses SVG rectangles, with each bar’s width proportional to the 2020 population estimate.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed