Activity6_Task1
✓ Published0🌍 Public
A horizontal bar chart shows the populations of the world's 30 most populous countries in 2020, sorted by country name along the y-axis and using a linear population scale on the x-axis. The chart is rendered as an SVG using React, with D3 v5 functions `scaleBand`, `scaleLinear`, `max`, and `format` to compute scales, domain values, and tick labels. Population values are loaded from a CSV file via `d3.csv`, with the `'2020'` column multiplied by 1000 to represent actual population counts. Hovering over a bar displays the precise population value in a native `<title>` tooltip.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed