Test fork
✓ Published3🌍 Public
This area chart displays population data for various countries across three distinct census years (2022, 2020, and 1970), using a stacked layout. The visualization employs D3.js’s `scaleBand` for the categorical country axis and `scaleLinear` for the population scale. Built with a custom `d3.area` generator, the chart renders paths filled with an ordinal color scheme. The code loads CSV data from a GitHub gist, includes axis labels for "Country" and "Population," and overlays direct value labels on each segment.
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