🌍 Public
Viewing a saved revision (read-only)
a9ea02af5e024a07a0809ae14cb2c588
Activity 6_Task 1
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 description