Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Making a Bar Chart

Public visualization

Fork of Making a Bar Chart

0 stars0🌍 Public
AAustin Krauss
Last edited Feb 8, 2021
Created on Feb 8, 2021
Forked from Making a Bar Chart

This bar chart displays the populations of the ten most populous countries, using 2018 estimates from the United Nations’ World Population Prospects. The code loads data from a CSV file with `d3.csv`, then renders horizontal bars using `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`. The y-axis lists country names, while the x-axis applies a custom tick formatter via `format(".3s")` to abbreviate large numbers in billions. The chart is drawn as SVG, with bars styled in steelblue.

AI-generated description

This bar chart shows population of 10 most populos countris.The data comes from the year 2018 estimate in United Nations:World Population Prospects 2017.

Comments

Sign in to join the discussion.

MIT Licensed