Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

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

Public visualization

Viewing a saved revision (read-only)

79d298e50e73413a96cd42e2824ca8da

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

0 stars1🌍 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.