Skip to main content
Public

Share visualization

Loading preview…

Line Chart with Multiple Lines

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Line Chart with Multiple Lines

0 stars3Public
Uu148
Last edited Feb 18, 2020
Created on Feb 18, 2020

This line chart displays one week of temperature data in degrees Celsius for cities worldwide, sourced from Data Canvas - Sense Your City, with each line representing a different city. The visualization aggregates the data using a nested hierarchy and renders the result as SVG paths, with color encoding to distinguish between cities. Built with D3 v5, the code uses `scaleTime`, `scaleLinear`, `scaleOrdinal`, and `nest` to process the data, while `axisBottom`, `axisLeft`, and a custom `colorLegend` module handle the axes and legend. The chart includes a time-based x-axis, a linear y-axis, and a categorical color scale with a legend.

AI-generated description

This line chart shows one week of temperature (in degrees Celcius) in cities around the world. The data comes from Data Canvas - Sense Your City.

Comments

Sign in to join the discussion.

MIT Licensed