Skip to main content
100%

Bar chart

✓ Published0🌍 Public
Ssayleenaik
Last edited Oct 27, 2020
Created on Oct 27, 2020
Forked from Face D3

A horizontal bar chart displays the population of the top ten most populous countries, with bars ordered from largest (China) to smallest (Mexico). The visualization uses D3 v5’s `csv`, `scaleLinear`, and `scaleBand` to map population values to bar lengths and country names to vertical positions, while `axisLeft` and `axisBottom` generate axes with formatted tick labels. Data from `data.csv` is loaded asynchronously and multiplied by 1000 to reflect actual population figures. The SVG rendering includes a title and axis labels, with bars styled in steel blue.

AI-generated description
MIT Licensed

Similar vizzes