Skip to main content
Public

Share visualization

Loading preview…

Learning D3 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

Learning D3 Multiple Lines

0
KKamalabot
Last edited Jul 11, 2022
Created on Jul 11, 2022

This line chart displays one week of temperature data in degrees Celsius for cities worldwide, sourced from Data Canvas - Sense Your City. The visualization uses d3.csv, d3.nest, d3.scaleTime, d3.scaleLinear, d3.scaleOrdinal, and d3.line with curveBasis to render smooth, multi-colored city paths. A custom colorLegend module creates an SVG legend, while axis labels and a title are appended manually. The code includes a YouTube tutorial link for learning purposes, and the data is loaded from a VizHub-hosted CSV file.

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