ACT6-TUTORIAL1
✓ Published1🌍 Public
This bar chart displays the population of 30 countries for the year 2020, using horizontal bars ranked by country name. The visualization, built with React and D3 v5, loads CSV data via `d3.csv` and scales the bar lengths with `scaleLinear`, while `scaleBand` positions the categorical y-axis. Custom `AxisBottom` and `AxisLeft` components render SVG ticks and labels, with population values formatted in billions using `d3.format`. Tooltips appear on hover through SVG `<title>` elements, and the chart includes a green bar fill with blue axis lines.
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