activity 6_Task 1
✓ Published0🌍 Public
This example shows a horizontal bar chart comparing country populations for 2020, with country names on the y-axis and population values on the x-axis. It loads CSV data dynamically and renders SVG bars using React components. The code builds scales with `d3.scaleBand` and `d3.scaleLinear`, formats tick labels with `d3.format`, and creates custom axis components like `AxisLeft` and `AxisBottom` that generate tick marks and text 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