Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

c73e1a9739eb462ca3d0162ba8d926bd

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.