Skip to main content
100%

Assignment 2 Area Chart

✓ Published2🌍 Public
Ggnanendra097@gmail.com
Last edited Apr 23, 2024
Created on Apr 10, 2024
Forked from Hello VizHub

This example presents a stacked area chart displaying population data across multiple countries. The visualization uses D3.js v6 to load CSV data, stack series with d3.stack, and render areas with d3.area, while d3.scaleBand and d3.scaleLinear position the categorical and numeric axes. The SVG output includes axis labels, a color-coded legend, and numeric value labels atop each segment. A d3.scaleOrdinal with the schemeCategory10 palette assigns distinct colors to each population category.

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