Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Refactored Bar Chart

Public visualization

Viewing a saved revision (read-only)

1af052aefdcf4c2a850080d0986b2e63

Fork of Refactored Bar Chart

0 stars0🌍 Public
RRoberto
Last edited Aug 17, 2023
Created on Aug 17, 2023

This visualization displays the top 10 most populous countries as a horizontal bar chart, using data from the United Nations World Population Prospects 2019. It uses React for component composition and d3.v5’s `scaleBand`, `scaleLinear`, and `max` for scales and domain calculation. The chart renders as SVG, with axes constructed via custom `AxisBottom` and `AxisLeft` components, while `Marks` draws the rectangular bars. Data is loaded asynchronously with d3’s `csv` function and filtered to the first 10 rows.

AI-generated description

A program that shows the top 10 most populous countries as a pathetic bar chart with no axes.

Data: United Nations World Population Prospects 2019.