🌍 Public
Viewing a saved revision (read-only)
7f4d45fa78094439b744e6b6045d8a14
Activity6_Task1
This bar chart displays the 2020 population of 30 countries, sourced from a CSV file, with countries on the y-axis and population on the x-axis. The visualization uses React components to render SVG marks, with d3.scaleBand and d3.scaleLinear for positioning, and d3.format for abbreviating tick labels (e.g., "B" for billions). The code leverages d3.csv for data loading and includes tooltips via SVG `<title>` elements.
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.