Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Test fork

Public visualization

Viewing a saved revision (read-only)

dec355ef173544e081993c263bf286a5

Test fork

0 stars3🌍 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.