Skip to main content
100%

BarChart

✓ Published0🌍 Public
Ss-janibekova
Last edited Oct 25, 2019
Created on Oct 18, 2019

This example shows a horizontal bar chart of country populations, with bars ordered alphabetically by country name. It uses D3 v5’s `scaleBand` for the y-axis categories, `scaleLinear` for the x-axis population values, and `axisLeft`/`axisBottom` to render axes. Population figures from the CSV are multiplied by 1000 to reflect actual counts. The SVG is drawn via `select`, with rectangles appended through `selectAll('rect').data().enter()`.

AI-generated description
MIT Licensed

Similar vizzes