🌍 Public
Viewing a saved revision (read-only)
cbd884bf4f0a4a52a512537e25fe155a
Task8Question1_2
A horizontal bar chart displays the populations of the top 20 countries in 2010, with country names on the y-axis and population values on the x-axis, using a green fill for each bar. The visualization is built with React and D3 v5, using `scaleBand` and `scaleLinear` for axes, and renders SVG via `Marks`, `AxisBottom`, and `AxisLeft` components. Data loads from a remote CSV, formats values with D3’s `format`, and features tooltips showing the tick-formatted population 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.