Skip to main content
100%

Fork of Customizing Axes

✓ Published0🌍 Public
Mmegshe
Last edited Aug 6, 2021
Created on Aug 6, 2021
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries in 2018, based on data from the United Nations World Population Prospects 2017. The chart uses d3.scaleLinear and d3.scaleBand to map population values and country names, while d3.axisBottom and d3.axisLeft render the axes, with axis labels and tick formatting applied via d3.format. Population values are loaded from a CSV, multiplied by 1000, and drawn as SVG rectangles.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in United Nations: World Population Prospects 2017. It also demonstrates customization of D3 axes.

See also the first bar chart visualization that this one builds on: Making a Bar Chart.

MIT Licensed

Similar vizzes