Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of linechart

Public visualization

Viewing a saved revision (read-only)

288f1fe10dec4bb89d0485e359724717

Fork of linechart

0 stars0🌍 Public
Ssrividyamadas@gmail.com
Last edited Mar 28, 2024
Created on Mar 27, 2024
Forked from linechart

This line chart displays the population of five selected countries—India, the United States, China, Japan, and Germany—from 2011 to 2021. It loads comma-separated data via `d3.text`, parses it, and renders multiple lines using `d3.line` with `d3.curveLinear`. Axes are generated with `d3.axisBottom` and `d3.axisLeft`, and a legend lists each country’s color from `d3.scaleOrdinal` with `d3.schemeCategory10`. The visualization uses an SVG rendering approach within a fixed-width container, labeling the y-axis in billions.

AI-generated description