Question1.1
✓ Published1🌍 Public
A horizontal bar chart displays the population of ten countries in the year 2000, using a linear scale for the x-axis and a band scale for the y-axis. The React app loads CSV data via `d3.csv`, transforms the population values by multiplying by 1000, and renders SVG rectangles with `d3.scaleLinear`, `d3.scaleBand`, and `d3.max`. Axis components use `d3.scaleBand.ticks` and `d3.format` to show abbreviated tick labels, while a tooltip is provided through SVG `<title>` elements.
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