🌍 Public
Viewing a saved revision (read-only)
01dccbb8a4434bd4bf701c95cdf52434
Activity6_Task1_Q1.2
This interactive bar chart visualizes the population of 20 countries for the year 2010. Each horizontal bar's length is proportional to population, with countries listed on the y-axis and population values on the x-axis, formatted in billions (e.g., "1.2B"). The visualization is built with React and D3 v5, using `scaleBand` for the categorical y-axis and `scaleLinear` for the population x-axis. Data is loaded from a remote CSV file using D3's `csv` function, and the chart is rendered as an SVG with tooltips showing exact values.
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.