Skip to main content
100%

Bar Chart Demo

✓ Published0🌍 Public
Aaditikandoi
Last edited May 16, 2022
Created on May 10, 2022
Forked from Making a Bar Chart

This bar chart shows the populations of the ten most populous countries, using data from the United Nations’ 2018 estimates. It uses D3 v5 with an SVG rendering, employing `d3.scaleLinear` and `d3.scaleBand` to map population values and country names to visual bars. The axes are customized via `d3.axisBottom` and `d3.axisLeft`, with tick labels formatted using `d3.format` to display numbers in billions. The chart draws steelblue bars without labels, omitting axis lines and ticks for a clean look.

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