Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Refactored barchart

Public visualization

Viewing a saved revision (read-only)

45dc5b747d9f4fc79b63fc86c98ca807

Refactored barchart

0 stars1🌍 Public
Llaplantalaplanta
Last edited Jan 27, 2022
Created on Jan 27, 2022

This bar chart displays the ten most populous countries in 2020 using data from the United Nations World Population Prospects 2019. The visualization uses React components that wrap D3 scales, including `scaleBand` for the y-axis and `scaleLinear` for the x-axis. Axes are rendered as custom SVG elements, with tick labels generated via `axisBottom` and `axisLeft` style logic, while rectangles are drawn as marks in the SVG. Data is loaded asynchronously with `d3.csv`.

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.