Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Simple Bar Chart

Public visualization

Viewing a saved revision (read-only)

17b8521a10284be58d2f8df464a61d65

Fork of Simple Bar Chart

0 stars0🌍 Public
MManish Reddy Yachavarapu
Last edited Mar 19, 2024
Created on Mar 19, 2024
Forked from Simple Bar Chart

This visualization displays the top 10 most populous countries as of January 1, 2024, using a horizontal bar chart where bar lengths represent population in thousands. The code filters a United Nations population dataset for country-level entries, sorts by population in descending order, and selects the top ten. It leverages d3’s `scaleBand` and `scaleLinear` for positioning, with axes and labels handled through the `@curran/axis-labels` library. A light gray inner rectangle frames the plotting area, and bars are rendered as SVG rectangles via the `viz` function.

AI-generated description

A bar chart showing the top 10 most populous countries on Earth as of January 1st 2024.

Challenge

  • Fork this viz and modify it to show your own data