Skip to main content
100%

Fork of Making a Bar Chart2

✓ Published0🌍 Public
Kkashibr
Last edited Feb 3, 2022
Created on Feb 2, 2022
Forked from Making a Bar Chart

This bar chart displays the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects. It shows the population for each country as a horizontal bar. The example demonstrates how to customize D3 axes, including tick formatting and removal of domain lines. It loads data from a CSV file using d3.csv and renders the chart with SVG elements, using d3.scaleLinear, d3.scaleBand, d3.axisLeft, and d3.axisBottom.

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