Skip to main content
100%

Making a Bar Chart with D3.js!

✓ Published1🌍 Public
Fforcox43
Last edited Jul 10, 2020
Created on Jul 10, 2020

This bar chart displays the population of the top 10 most populous countries, using data from the United Nations’ 2017 World Population Prospects (2018 estimates). The population values are multiplied by 1,000 to reflect actual counts. Built with React and D3.js, the visualization renders as an SVG. It uses D3’s `scaleLinear` and `scaleBand` for axes, with `axisBottom` and `axisLeft` to draw ticks, and formats large numbers via `format('.3s')`. The chart’s bars are represented as circles, with original tick lines and axis domains removed for a cleaner aesthetic.

AI-generated description

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

A bare minimum HTML page.

See also React Starter.

MIT Licensed

Similar vizzes