Skip to main content
100%

Activity 6_Task 1

✓ Published1🌍 Public
Pperamranji
Last edited Mar 31, 2025
Created on Mar 31, 2025
Forked from Hello VizHub

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
MIT Licensed

Similar vizzes