activity 6 tutorial 1
✓ Published0🌍 Public
This example presents a horizontal bar chart of the 2020 population for 30 countries, sorted from largest to smallest by the y-axis. The data is loaded from a CSV file via `d3.csv` and rendered as SVG rectangles using React components. It applies `d3.scaleBand` for the categorical y-axis and `d3.scaleLinear` for the numeric x-axis, with `d3.format` to abbreviate population values in billions. Axes and marks are built with reusable React components that map data to SVG elements.
AI-generated descriptionMIT Licensed