Activity6_Question1
✓ Published0🌍 Public
This visualization shows the population of 20 countries in 2010 using a horizontal bar chart, with bars sorted in descending order from China to the United Kingdom. The chart uses D3 v7’s `scaleBand` for the categorical country axis and `scaleLinear` for the population values, rendering bars as SVG `rect` elements. Hovering changes the bar color to orange via CSS. Data is loaded from a CSV file with `d3.csv`, and axes are formatted with `d3.axisLeft`, `d3.axisBottom`, and `d3.format` for abbreviated tick labels.
AI-generated descriptionMIT Licensed