Skip to main content
100%

D3-2: Bar chart

✓ Published1🌍 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
MIT Licensed

Similar vizzes