Skip to main content
100%

Making a Bar Chart

✓ Published0🌍 Public
RRJAuer1
Last edited May 7, 2019
Created on May 7, 2019

This bar chart displays the populations of the top 10 most populous countries, based on 2018 estimates from the United Nations World Population Prospects. The SVG visualization uses d3.csv to load the data, d3.scaleLinear for the x-axis and d3.scaleBand for the y-axis, with d3.axisLeft and d3.axisBottom rendering the axes. Rectangles are bound to the data via d3.selectAll and .enter().append, with widths mapped to population values; the fill color is set to steelblue via CSS. The data values are multiplied by 1000 after loading to reflect actual population counts.

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.

MIT Licensed

Similar vizzes