Skip to main content
100%

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

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

This vertical bar chart displays the populations of the top 30 countries from the 2020 World Population Prospects dataset. Using D3 v5, the visualization loads CSV data, maps it to a linear scale for the x-axis and a band scale for the y-axis, and renders SVG rectangles with hover effects that temporarily change fill color. The chart also customizes axis formatting to abbreviate large numbers and removes tick lines for a cleaner appearance.

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