🌍 Public
Activity6_Question1
A horizontal bar chart displays population figures for twenty countries, sorted by country name, with light green bars and a blue axis. The visualization loads CSV data from a GitHub repository and uses D3 v5 scale functions—`scaleBand` for the categorical y-axis and `scaleLinear` for the quantitative x-axis—within a React component. SVG rendering via React elements includes custom axis components, formatted tick labels using D3's `format` function, and tooltips on each bar.
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
Comments
Sign in to join the discussion.