Skip to main content
100%

Bar Chart D3

✓ Published0🌍 Public
SSophia Cofone
Last edited Jun 30, 2022
Created on May 25, 2022
Forked from Customizing Axes

This bar chart displays the populations of the top 10 most populous countries, using data from the 2018 United Nations World Population Prospects estimate. The visualization demonstrates customized axes, employing d3.scaleLinear for the population values and d3.scaleBand for country categories, with d3.axisBottom and d3.axisLeft for tick marks. Rectangles render the bars in SVG, with population numbers formatted using d3.format and scaled to thousands. The chart also removes axis domains and tick lines, and appends custom labels for the title and x-axis.

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