Skip to main content
100%

Fork of Making a Bar Chart

✓ Published0🌍 Public
RRahulYN
Last edited Dec 22, 2022
Created on Dec 21, 2022
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, sourced from the 2018 United Nations World Population Prospects estimate. It shows horizontal bars with country names on the y-axis and population values on the x-axis, featuring a title and axis label. The visualization uses D3 v5 with `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to construct the SVG layout. The code also demonstrates custom axis tick formatting, converting large numbers to abbreviated units (e.g., "B" for billions).

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.

MIT Licensed

Similar vizzes