Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Temperature in San Francisco (Line)

Public visualization

Temperature in San Francisco (Line)

0 stars0🌍 Public
AAfnan Nazir
Last edited Jan 28, 2020
Created on Jan 28, 2020

A dropdown menu lets users select a country, and a line chart displays that country’s population over time. The visualization uses D3.js to parse CSV data, render SVG axes and paths, and animate transitions between selections. A categorical color scale from `d3-scale-chromatic` assigns a distinct stroke color to each country’s line, while `d3.scaleLinear` maps years and population values to coordinates. The interface updates the line via a `transition` when the selection changes.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed