🌍 Public
Viewing a saved revision (read-only)
aea6bcbbd5b2440a82e9b2c291d11811
Act6_Q1.1
This bar chart displays the top ten countries by population in the year 2000, using a horizontal layout with a logarithmic scale for the population axis. The visualization is built with React and D3 v5, using `scaleBand` for the categorical country axis and `scaleLinear` for the numeric population axis. Data is loaded from a CSV file via D3's `csv` function, with population values calculated by multiplying the raw data by 1000. The chart uses SVG rendering with interactive tooltips showing formatted population values on hover.
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.