activity6_tutorial1
✓ Published3🌍 Public
This horizontal bar chart displays the top 30 countries by population in 2020, using a lightgreen fill for each bar. The chart sorts countries along the y-axis with population values on the x-axis, formatted with a custom tick formatter that converts values to billions. Built with D3 v7 and SVG, the visualization leverages `d3.scaleLinear` and `d3.scaleBand` for positioning, while `d3.axisBottom` and `d3.axisLeft` render the axes. Data is loaded asynchronously from a CSV file via `d3.csv`, with the population column parsed as a number.
AI-generated descriptionMIT Licensed