Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Responsive Bar Chart

Public visualization

Responsive Bar Chart

0 stars2🌍 Public
DDonald Bagwell
Last edited Apr 14, 2024
Created on Apr 14, 2024

This responsive bar chart displays the top 10 most populous countries as of January 1, 2024, using data from the UN population estimates. It uses d3.scaleBand and d3.scaleLinear to map country names and population values to bar positions and heights. The visualization leverages the `observeResize` helper from `@drbagwell/responsive-viz-axes` for dynamic sizing, and renders axes through the `axes` function. The chart includes a gray inner rectangle behind the bars and uses `d3.select` and `join` for SVG element management.

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

Comments

Sign in to join the discussion.

MIT Licensed