ACT 6 Q1
✓ Published1🌍 Public
A horizontal bar chart displays population figures for ten countries from a CSV dataset, using SVG rectangles scaled by d3.scaleLinear. D3’s scaleBand positions categorical country labels along the y-axis, while d3.format shortens tick values to billions. React manages the component state, loading data asynchronously via d3.csv, and custom axis components render ticks and labels. The visualization highlights population magnitudes with green bars and includes tooltips showing formatted values 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.
MIT Licensed