Skip to main content
100%

Bar chart

✓ Published1🌍 Public
Eevapavlinek
Last edited Apr 7, 2020
Created on Apr 6, 2020
Forked from Let's make a face!

This bar chart displays population estimates for the ten most populous countries, with horizontal bars sorted by descending population. The visualization uses D3 v5’s `scaleLinear` for the x-axis and `scaleBand` for the categorical y-axis, rendering SVG rectangles. Data is loaded from a CSV file via `d3.csv` and scaled by a factor of 1,000. Axes are generated with `axisLeft` and `axisBottom`, while margins and an SVG group transform position the chart within the 960×500 viewport.

AI-generated description
MIT Licensed

Similar vizzes