ACT6-Question1
✓ Published1🌍 Public
This horizontal bar chart displays the top 10 countries by population in the year 2000, with countries listed on the y-axis and their populations (in billions) on the x-axis. It uses React with D3 (v5) for scaling and encoding, rendering as an SVG. The example loads the dataset via `d3.csv` from a GitHub URL, uses `scaleBand` and `scaleLinear` for axes, and creates interactive tooltips with the `<title>` SVG element. Styling is applied via CSS for hover effects and axis aesthetics.
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