Skip to main content
100%

Activity 6

✓ Published0🌍 Public
NNithish Karanam
Last edited Apr 5, 2025
Created on Apr 5, 2025
Forked from Activity 7

This example shows the 2020 population for 30 countries as a horizontal bar chart built with React and D3 v5, rendered as SVG. The code uses `scaleBand` for the categorical y-axis, `scaleLinear` for the numeric x-axis, and `format('.2s')` to abbreviate tick labels (e.g., converting G to B). Data is loaded asynchronously from a remote CSV via D3’s `csv` method, with the axis and marks defined as reusable React components.

AI-generated description
MIT Licensed

Similar vizzes