Skip to main content
100%

Activity 7 Tutorial 2

✓ Published0🌍 Public
RRishithaGarnepudi@my.unt.edu
Last edited Nov 2, 2024
Created on Nov 2, 2024
Forked from Hello VizHub

This visualization shows population growth over time for the first five countries in a CSV dataset, displaying semi-transparent overlapping area charts for each country. The code loads data via `d3.csv`, parses population values across nine census years, and uses `d3.scalePoint` for the x-axis and `d3.scaleLinear` for the y-axis. It generates areas with `d3.area()`, colors them via `d3.schemeCategory10`, and renders with SVG paths, axes, and text labels. The chart includes a title, axis labels, and country labels positioned near each area’s final value.

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