Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Viewing a saved revision (read-only)

a5556aacdbe8402ba340b82077780a66

Making a Bar Chart

0 stars0🌍 Public
Oovalli
Last edited Mar 30, 2020
Created on Mar 30, 2020
Forked from Making a Bar Chart

This bar chart displays the population of the top 10 most populous countries, using 2018 estimates from World Population Prospects 2017. The visualization loads data from a CSV file and renders it as an SVG, with the y-axis ordered by country name and the x-axis scaled linearly. The code uses D3 v5 modules including `csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom` to build the chart, apply margins, and add axis labels. Population values are converted from thousands to full counts, and the x-axis ticks use a custom formatter to abbreviate large numbers.

AI-generated description

This bar chart shows population of the top 10 most populous countries. The data comes from the year 2018 estimate in World Population Prospects 2017.