Skip to main content
100%

Test fork

✓ Published3🌍 Public
Ssahajm99@gmail.com
Last edited Apr 17, 2024
Created on Apr 13, 2024

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 description

An example showing the capabilities of VizHub:

  • Loads D3 via UNPKG.
  • Demonstrates use of import from "d3".
  • Demonstrates use of import from local ES6 modules.
MIT Licensed

Similar vizzes