🌍 Public
Viewing a saved revision (read-only)
82669bc1eda7497bbee83e436654fbed
Activity 6_task 1
This visualization displays the population of 30 countries in 2010 using a horizontal bar chart. The bars are rendered as SVG rectangles, with the x-axis representing population values and the y-axis listing country names. The chart uses D3 v5's `scaleBand` and `scaleLinear` functions to map data to coordinates, with React components for the axes and marks. Data is loaded from a CSV file using D3's `csv` function, and the x-axis labels are formatted using the `format` function to abbreviate large numbers.
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.