Skip to main content
100%

Fork of Fork of Bar Chart top 30 Countries Population (vertical) with CSV

✓ Published1🌍 Public
CChawin Sungwalngern
Last edited Dec 26, 2022
Created on Dec 26, 2022

This bar chart shows the top 30 countries by population, using horizontal bars sorted vertically. The chart displays population values on a linear scale and country names on a band scale, with custom axis formatting that abbreviates large numbers. It uses D3 v5’s `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` APIs, rendering as SVG. Bars turn orange on mouseover via `select` and `attr` transitions. Data comes from the 2020 Kaggle World Population Prospects dataset, loaded from a local CSV file.

AI-generated description

This bar chart shows population of the top 30 countries. The data comes from the year 2020 Kaggle: World Population Prospects 2020. It also demonstrates customization of D3 axes.

MIT Licensed

Similar vizzes