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
KKarkG
Last edited Aug 21, 2020
Created on Aug 21, 2020
Forked from Gunz N' Roses

This example shows one week of temperature data from cities worldwide, visualized as a bar chart with multiple colored series per date using d3.scaleBand and d3.scaleOrdinal with schemeCategory10. Each bar corresponds to a city’s temperature reading, with hover interactions that highlight selected bars and dim others. The data is loaded as CSV from a GitHub gist and parsed with d3.csv, while custom color legends and axis labels are built using d3.axisLeft, d3.axisBottom, and d3.drag for interactive bar adjustments. Rendering uses SVG with transitions for hover effects.

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