Skip to main content
100%

Making a BarChart

✓ Published1🌍 Public
Bbakstorage00001
Last edited Jan 30, 2022
Created on Jan 30, 2022
Forked from d3 Intro

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 description

Population from the year 2018 estimate.

MIT Licensed

Similar vizzes