Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Bar Chart

Public visualization

Bar Chart

0 stars0🌍 Public
DDangLeUyen
Last edited Nov 23, 2022
Created on Nov 23, 2022
Forked from Stylized Bar Chart

A bar chart displays the top 10 most populous countries, using United Nations World Population Prospects 2019 data from a CSV file. The code loads the data with `d3.csv`, scales the population values, and renders horizontal bars with `d3.scaleLinear`, `scaleBand`, `axisLeft`, and `axisBottom`. Tick labels are formatted with `format('.3s')`, and the chart includes axis labels and a title. The visualization is drawn as SVG elements within a 960×500 viewport, with bars styled via CSS.

AI-generated description

A program that shows the top 10 most populous countries as a bar chart.

Data: United Nations World Population Prospects 2019.

Comments

Sign in to join the discussion.

MIT Licensed