Skip to main content
100%

nation population

✓ Published0🌍 Public
Lliu981101
Last edited Dec 24, 2022
Created on Dec 24, 2022
Forked from demo of D3

This bar chart displays the populations of the ten most populous countries in 2017, using a horizontal layout where each bar’s length corresponds to the population value from a CSV file. The visualization employs D3 v7 APIs such as `d3.csv`, `d3.scaleLinear`, `d3.scaleBand`, `d3.axisLeft`, and `d3.axisBottom`, rendering SVG rectangles with steelBlue fills. Data values are multiplied by 1000 and formatted with abbreviations like “B” for billions, while axis lines and tick marks are selectively removed for a cleaner presentation.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes