🌍 Public
Viewing a saved revision (read-only)
a7397d6524d14e9eb95c6494549f5115
activity6_task1.2
This example shows a horizontal bar chart of 2010 population data for 20 countries, with country names on the y-axis and population scaled along the x-axis. The visualization is rendered as an SVG using React components and D3 v5 scales, including `scaleBand` for the categorical axis and `scaleLinear` for the numeric axis. Data is loaded from a remote CSV file using the `csv` function from D3, with population values multiplied by one thousand. Axes, tick lines, and bar marks are built from custom React components, with title tooltips formatting population values using D3’s `format` function.
AI-generated descriptionA demonstration of how to start using D3 version 6.