Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars2๐ŸŒ Public
Jjuanandressr97
Last edited May 24, 2019
Created on May 24, 2019

This bar chart displays the population of the top 10 most populous countries using 2018 estimates from the United Nations World Population Prospects. The code loads data from a CSV file and renders rectangular bars with an SVG, using d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom for the axes. The chart is built with D3 v5 and styled with steelblue 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.

Comments

Sign in to join the discussion.

MIT Licensed