Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Assignment 2 part2

Public visualization

Viewing a saved revision (read-only)

1cd90ef6de714595b4582d90cf47b5bc

Assignment 2 part2

0 stars4🌍 Public
Aanjeevu@gmail.com
Last edited Jul 13, 2024
Created on Jul 11, 2024
Forked from Hello VizHub

This area chart visualizes population trends for ten countries over time, highlighting changes in population size across several decades. The chart is rendered as an SVG using the D3.js library, with data processed from a CSV file via the `csv()` API. It uses D3's stacking and area functions to create layered regions, with a legend and axes labeled "Years" and "Population (millions)" to guide interpretation. The chart employs `d3.scaleTime` for the x-axis and a linear scale for the y-axis, with gridlines for readability.

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.