Activity 6_Task 1
✓ Published0🌍 Public
This chart is a horizontal bar chart showing the populations of ten countries in the year 2000, with the x-axis labeled "POPULATION-2000" using a custom tick format that converts large numbers to a scaled abbreviation (e.g., 'B' for billion). The y-axis lists country names, and hovering over a bar displays its exact population via a tooltip. Built with React and D3 v5, it uses D3’s `scaleBand` for the categorical y-axis and `scaleLinear` for the continuous x-axis, rendering the bars as SVG rectangles. The data is loaded asynchronously from a remote CSV file using D3’s `csv` function.
AI-generated descriptionMIT Licensed