Skip to main content
100%

Read from Excel

✓ Published1🌍 Public
IImmaculata-Mary Muoghalu
Last edited May 11, 2021
Created on May 11, 2021
Forked from Customizing Axes

This bar chart displays the top 10 most populous countries using 2018 UN population estimates, with each bar colored according to the country’s flag colors. The chart encodes population on a linear x-axis and country names on a categorical y-axis, using d3.scaleLinear, d3.scaleBand, and d3.axisLeft/axisBottom. Data is loaded from a CSV file via d3.csv, with populations multiplied by 1000, and rendered as SVG rectangles. Axis tick labels use abbreviated formatting via d3.format.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data is sourced from 2018 estimate from the link: https://esa.un.org/unpd/wpp/download/standard/population/

MIT Licensed

Similar vizzes