Skip to main content
100%

CS399

✓ Published0🌍 Public
Lleezhiying
Last edited Oct 21, 2019
Created on Oct 21, 2019
Forked from CS399

This bar chart displays the top 10 most populous countries, based on 2018 population estimates from the United Nations World Population Prospects. The visualization uses D3 v5 with an SVG rendering, employing `scaleLinear` for the population axis and `scaleBand` for country categories. The code customizes axes with `axisBottom` and `axisLeft`, formats tick labels using D3's `format` function, and reads data from a CSV file via `csv`. The chart also includes labeled axes and a title, building upon a prior bar chart example.

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.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes