Activity_6_task_1
✓ Published0🌍 Public
This bar chart displays the population of 30 countries in 2020, sorted by country name along the y-axis. The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the numeric x-axis. Data is loaded from a CSV file via D3's `csv` function, with population values formatted using `d3.format` to abbreviate large numbers. The SVG rendering includes custom axes, tooltips via `<title>` elements, and a green fill for each bar.
AI-generated descriptionAn example showing the capabilities of VizHub:
- Loads D3 via UNPKG.
- Demonstrates use of
importfrom"d3". - Demonstrates use of
importfrom local ES6 modules.
MIT Licensed