Activity 6_Task 1
✓ Published1🌍 Public
This example shows a horizontal bar chart of population counts for up to 30 countries using data pulled from a CSV file. The visualization uses D3 v7 scales to map countries to vertical bands and population values to horizontal bar widths, with the bars rendered using SVG `<rect>` elements. The code builds the chart by appending axes and marks to a React-managed SVG, leveraging helper components for the bottom and left axes. The underlying data is fetched via D3’s `csv` function and preprocessed to convert population figures.
AI-generated descriptionMIT Licensed