Activity6_Task1_Question1.1
✓ Published0🌍 Public
This chart displays the top 10 countries by population in 2020, using a horizontal bar chart rendered as SVG elements. Population values are loaded from a CSV file and formatted with SI prefixes, converting gigabytes to billions for readability. React manages the component state, while D3's `scaleBand` and `scaleLinear` position the bars, with the `Marks` component generating each rectangle. Axes are created through custom `AxisBottom` and `AxisLeft` components, and the chart includes a native SVG tooltip showing the population value on hover.
AI-generated descriptionMIT Licensed