Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Rooms

Public visualization

Viewing a saved revision (read-only)

ff29699a72444b49bb95a14923d4d1fd

Rooms

0 stars1🌍 Public
TTMorgan99
Last edited Jan 16, 2020
Created on Jan 13, 2020
Forked from Customizing Axes

This bar chart shows the population sizes of various animal homes, such as a field, chicken coop, and cow pasture, using data from a CSV file. It displays the top 10 most populous locations, with each bar’s height mapped via `scaleLinear` and positioned using `scaleBand`. The code uses D3 v5 methods like `axisLeft` and `axisBottom` for customized axes, and loads data asynchronously with `csv`. The SVG rendering is styled with fixed rectangular fills and tick labels.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.