🌍 Public
Viewing a saved revision (read-only)
1d77f65960f74d01a5a5c942a5f824ba
Activity8_Task1_DV_LB_Q1.2
A horizontal bar chart displays the population of twenty countries in 2020, with bars sorted by country name and scaled linearly along the x-axis. The visualization uses React components to render SVG elements, with d3.scaleBand and d3.scaleLinear handling the axes. D3's csv loader fetches the dataset from a GitHub raw URL, multiplies the 2010 value by 1000 to represent population, and formats tick labels using d3.format. Light green bars include native SVG tooltips showing the formatted population value.
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.