Activity 6_Task 1
✓ Published0🌍 Public
This visualization displays population data for 30 countries using a horizontal bar chart, with bars colored green and blue axis lines. The chart represents each country’s 2020 population from a CSV dataset through React components that render D3 scales and marks. The code uses local ES6 modules for axis and mark components, while importing `csv` and `select` from d3.v5 to load and manipulate data. Native SVG elements, including `rect` for bars and `line` for ticks, build the visualization with D3’s scale functions handling positioning and sizing.
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