Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Making a Bar Chart

Public visualization

Making a Bar Chart

0 stars1🌍 Public
DDavid Trye
Last edited Jun 5, 2020
Created on Jun 5, 2020
Forked from Making a Bar Chart

This bar chart displays the populations of the top 10 most populous countries from a 2018 United Nations estimate. It uses D3 v5 to load CSV data, scale to a linear x-axis and banded y-axis, and render SVG rectangles for bars. The code specifically leverages `d3.csv`, `scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`, with population values multiplied by 1000 for display.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed