Skip to main content
100%

activity 6

✓ Published0🌍 Public
MMili Patel
Last edited Mar 27, 2025
Created on Mar 27, 2025
Forked from HTML Starter

This horizontal bar chart displays the 2020 population estimates for 30 countries, with bars sorted by country name along the Y-axis and population values on the X-axis. The visualization uses D3 v7’s `scaleBand` and `scaleLinear` to map data, while `d3.axisBottom` and `d3.axisLeft` generate the axes. SVG rectangles are rendered via a custom `Marks` component, and data is loaded asynchronously from a CSV using `d3.csv` with `autoType` parsing. The chart has a fixed 960×600 viewport with a left margin accommodating country labels.

AI-generated description
MIT Licensed

Similar vizzes