Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

1 star1🌍 Public
HHe Jianfeng
Last edited Apr 7, 2021
Created on Apr 7, 2021

This bar chart displays population estimates for the ten most populous countries, with horizontal bars ordered by country name. The visualization uses a D3 v6 data join to bind CSV data to SVG rectangles, scaling population values with `scaleLinear` and country names with `scaleBand`. Axes are generated using `axisLeft` and `axisBottom`, while the `csv` function loads the dataset and converts population values to absolute numbers before rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed