Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

D3-2: Bar chart

Public visualization

D3-2: Bar chart

0 stars1🌍 Public
Bbkopruluoglu3
Last edited Sep 9, 2023
Created on Dec 28, 2022

A horizontal bar chart displays population figures for the ten most populous countries, with China leading at over 1.4 billion. The chart uses D3 v7 with an SVG rendering, employing `scaleLinear` for the x-axis population values and `scaleBand` for the categorical country labels on the y-axis. Data is loaded from a CSV file using `d3.csv`, and axes are generated via `axisLeft` and `axisBottom` with custom tick formatting that abbreviates large numbers.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed