🌍 Public
Viewing a saved revision (read-only)
6b8218d85dcc4c549d916e81d23244c7
Activity6_population_Q1.2
This visualization displays the population of 20 countries in 2010, using horizontal bars to compare values. Built with React and rendered as an SVG, the chart uses D3 v5 functions like `scaleBand` and `scaleLinear` for axes, and `format` to abbreviate tick labels. Data is loaded from a CSV file via `csv()`, and tooltips reveal each bar’s exact population.
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.