activity 6_Q1.1
✓ Published0🌍 Public
This bar chart displays the populations of ten countries in 2010, with country names on the y-axis and population values on the x-axis. The data is loaded from a remote CSV file using the `csv` function from D3 v5, while React manages the component state and rendering as SVG elements. The chart uses `scaleBand` and `scaleLinear` to position bars, with formatted tick labels converting values to billions via D3’s `format` API. Hovering over a bar reveals the exact population through a native SVG `<title>` tooltip.
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