Skip to main content
Public

Share visualization

Loading preview…

-line Chart

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

0
TTarun Kumar Bosupally
Last edited Mar 28, 2024
Created on Mar 28, 2024

This line chart displays monthly average temperatures in degrees Fahrenheit for four US cities—NYC, LA, Chicago, and Houston—with each city drawn as a colored line (blue, red, green, orange). The visualization uses D3 v7 to load CSV data via `d3.text`, parse the temperature values, and render the chart as SVG using `d3.scaleBand` and `d3.line`. Interactive tooltips appear on hover over data points, implemented with mouseover events that display the city and temperature. A fixed y-domain from 10 to 90°F emphasizes relative seasonal patterns across the year.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed