🌍 Public
Viewing a saved revision (read-only)
9c9bb82831a74ad097a300850c5bc9b3
Activity6-Question1(1)
This chart displays the population figures for the top 10 countries in the year 2000, using a horizontal bar chart where each bar’s length corresponds to its population value. Built with React and D3 v5, the visualization uses `scaleBand` for the categorical country axis and `scaleLinear` for the continuous population axis, rendered as SVG rectangles. The data is fetched from a CSV file via `d3.csv`, and tooltips show formatted population values using `d3.format`. The code defines custom `AxisBottom`, `AxisLeft`, and `Marks` components to manage the chart’s layout.
AI-generated descriptionA demonstration of how to start using D3 version 6.