Skip to main content
100%

Bar Chart w/ D3.js

✓ Published3🌍 Public
Ggoodej
Last edited Sep 7, 2020
Created on Sep 7, 2020
Forked from HTML Starter

This bar chart displays the population of the ten most populous countries using 2018 estimates from the UN World Population Prospects. The visualization employs D3.js v6 with SVG rendering, using `scaleLinear` for the x-axis and `scaleBand` for categorical country labels. Population values, read from a CSV file via D3's `csv` method, are multiplied by 1000 before being drawn as steelblue rectangles with axes generated by `axisLeft` and `axisBottom`.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017.

MIT Licensed

Similar vizzes