Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0🌍 Public
Mmarissaverdonck
Last edited Jan 16, 2020
Created on Jan 16, 2020
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from the United Nations World Population Prospects. The chart shows a horizontal bar for each country, with a linear x-axis for population and a banded y-axis for countries, both customized by removing grid lines and domain paths. The visualization is built with D3 v5, using `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, and it renders as SVG. Data is loaded from a CSV file and formatted with the `format` function, replacing 'G' with 'B' for billion-scale 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.

Comments

Sign in to join the discussion.

MIT Licensed