Activity6_Question1(2)
✓ Published0🌍 Public
This horizontal bar chart displays the populations of the top 20 countries for 2010, using green bars and blue axis lines. The visualization is built with React and D3 v5, using SVG rendering. Data is loaded from a CSV file using D3’s `csv` function, then mapped to scale bands and linear scales. Bars are rendered as SVG `rect` elements, with axis ticks generated by custom `AxisBottom` and `AxisLeft` components. Population values are formatted with D3’s `format` function to abbreviate large numbers (e.g., “1.2B”).
AI-generated descriptionMIT Licensed