🌍 Public
Viewing a saved revision (read-only)
56ac9e3e013b4b3496e8715a5f0010e8
Activity6_Task1_Question1
This bar chart displays the population of ten countries in the year 2000, using horizontal bars sorted by the categorical variable Country. The visualization is rendered as an SVG using React, with D3’s `scaleBand` mapping countries to the y-axis and `scaleLinear` mapping population values to the x-axis. Data is loaded from a remote CSV file via D3’s `csv` function, and each bar includes a tooltip showing the formatted population value using D3’s `format` API.
AI-generated descriptionA demonstration of how to start using D3 version 6.