Fork of Hello VizHub
✓ Published0🌍 Public
This stacked bar chart displays population trends for multiple countries from 1950 to 2020, using a CSV dataset loaded via d3.csv. The visualization uses D3 v7’s d3.stack, d3.scaleBand, d3.scaleLinear, and d3.scaleOrdinal to render stacked segments per country, with an SVG output and an auto-generated legend for each year column. Axes are added via d3.axisBottom and d3.axisLeft.
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