activity 6
✓ Published0🌍 Public
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 descriptionMIT Licensed