Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Final Project- Multiple line chart

Public visualization

Final Project- Multiple line chart

0 stars0🌍 Public
Mmhzahdeh@dons.usfca.edu
Last edited Apr 7, 2025
Created on Feb 10, 2025

This visualization shows GDP per capita trends from 2019 to 2023 for five selected countries: the United States, India, Germany, Brazil, and China. The chart displays five polylines, one per country, with distinct colors and a legend identifying each line. The SVG rendering uses `d3.line()` to generate the paths and `d3.scalePoint()` for the x-axis years, while `d3.legendColor()` creates the color legend. Data is loaded from a CSV file via `d3.csv()` and processed into long format for plotting.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed