Activity 6_Answer 2_NRS
✓ Published0🌍 Public
This example visualizes the 2010 population of 20 countries using a horizontal bar chart, with country names on the y-axis and population on a linear scale. The chart uses D3 v7 with SVG rendering, employing `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the population values, plus `d3.axisBottom` and `d3.axisLeft` for axes with custom labels. Population data comes from a CSV hosted on GitHub, loaded asynchronously via `d3.csv`, and the bars are drawn with light green rectangles. The visualization includes a title and styled tick lines and text.
AI-generated descriptionMIT Licensed