Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Barra Chart

Public visualization

Viewing a saved revision (read-only)

062017a523514fe1a0c1d9038e074928

Making a Barra Chart

0 stars0🌍 Public
Ccarlosmarin2005
Last edited Oct 17, 2020
Created on Oct 17, 2020
Forked from Making a Bar Chart

This bar chart displays the populations of the top 10 most populous countries based on 2018 United Nations estimates, with country names on the y-axis and population on the x-axis. The D3 v5 code uses `scaleLinear`, `scaleBand`, `axisLeft`, `axisBottom`, and `format` to render an SVG visualization with customized tick formatting that converts values like "G" to "B". The dataset, loaded via `csv`, multiplies each population value by 1000, and the chart includes a title and axis label, with horizontal gridlines created through tick sizing.

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.