🌍 Public
Viewing a saved revision (read-only)
8c7ea5f75f1a4521b5afc28e93757cf7
Making a BarChart
The bar chart ranks the ten most populous countries using 2018 estimates from the data.csv file, with population values multiplied by 1000. Built with D3 v5, it renders SVG rectangles using `scaleLinear` for the x-axis, `scaleBand` for y-axis categories, and `axisBottom`/`axisLeft` for tick marks. Margins offset the chart, while the `enter()` selection appends styled `rect` elements with steelblue fills.
AI-generated descriptionPopulation from the year 2018 estimate.