Activity 6_Task 1
✓ Published1🌍 Public
This bar chart ranks 30 countries by their 2020 population, using a horizontal layout with the country names on the y-axis and population values on the x-axis. The SVG is rendered with React, using D3’s `scaleBand` and `scaleLinear` for axes, and `format` for tick labels that abbreviate large numbers (e.g., “1.2B”). Data is loaded from a remote CSV via `d3.csv`, and each bar’s tooltip displays the exact abbreviated population value. The axes and marks are built with custom ES6 modules for bottom ticks and left labels, with the chart styled by CSS classes.
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