Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

act8

Public visualization

Viewing a saved revision (read-only)

cfc3a83b84fd4a53be914cff812e347c

act8

0 stars0🌍 Public
Sshaiksajidali
Last edited Apr 9, 2024
Created on Apr 9, 2024

This example displays a responsive bar chart visualizing the top 10 most populous countries using data from the UN population estimates for 2024. The chart shows each country's total population in thousands, with bars rendered via SVG rectangles. The code uses the D3 library for data handling, including `scaleBand` and `scaleLinear` for scales, and the `@curran/responsive-axes` library for axis generation. Resizing is managed through `observeResize` from `@curran/responsive-axes`, ensuring the chart adapts to its container dimensions.

AI-generated description

A responsive bar chart.