Task8_Question1.2_HKK
✓ Published0🌍 Public
This visualization displays the 2010 population of 20 countries as a horizontal bar chart. Each bar’s length is proportional to its population value, with country names on the y-axis and a formatted population scale on the x-axis. Built with React and D3 v5, it uses `scaleBand` and `scaleLinear` to map data to SVG rectangles, while `AxisBottom` and `AxisLeft` generate the ticks and labels. The dataset is loaded as CSV from a GitHub repository, and hover tooltips show the precise formatted population for each bar.
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.
MIT Licensed