Question 2
✓ Published1🌍 Public
This example presents a horizontal bar chart of population trends for multiple countries from 1950 to 2020. It shows how each country’s population grows over time, with bars grouped by year and colored by country. The visualization is rendered as an SVG using D3.js, with data loaded from a CSV file. It uses d3.scaleLinear, d3.scaleBand, d3.axisBottom, and d3.axisLeft, plus a custom tooltip for interacting with individual bars.
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