Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars0๐ŸŒ Public
OOvxOO
Last edited Jul 16, 2019
Created on Jul 16, 2019
Forked from Hello VizHub

This example displays the top 10 most populous countries in 2018 using a horizontal bar chart, with population values from UN World Population Prospects 2017. The SVG visualization uses d3.csv to load data, d3.scaleLinear for the x-axis, d3.scaleBand for the y-axis, and d3.axisLeft and d3.axisBottom to render the axes. Bars are drawn as SVG rect elements, filled with steelblue, with population numbers scaled by 1000.

AI-generated description

An is a bar chart that shows the top 10 most populous countries in the world The data was obtained from the year 2018 estimate in World Population Prospects 2017.

Comments

Sign in to join the discussion.

MIT Licensed