activity 6_Task 1
✓ Published0🌍 Public
This chart displays the population of 20 countries in the year 2000 as a horizontal bar chart using SVG. The code uses D3 v5’s `scaleBand` and `scaleLinear` to position bars, with React rendering the visualization. Population values are formatted with a custom tick formatter that converts large numbers (e.g., “G” to “B”). The data is loaded from a CSV file via D3’s `csv` function, and each bar includes an HTML `<title>` element for tooltips.
AI-generated descriptionA demonstration of how to start using D3 version 6.
MIT Licensed