Skip to main content
Public

Share visualization

Loading preview…

temperature_data.csv

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

temperature_data.csv

0
RRuthvik Bairaboina
Last edited Oct 18, 2025
Created on Oct 18, 2025

This example displays a bar chart of average temperatures for major U.S. cities using React with D3 v7. The visualization presents the data from a CSV file with city names on the x-axis and temperature values on the y-axis, using d3.scaleBand and d3.scaleLinear for positioning. Clicking a bar highlights that city and dims others, with d3.axisBottom and d3.axisLeft providing labeled axes and gridlines. The chart uses a teal color scheme with hover effects, and supports responsive resizing through a ResizeObserver that triggers re-rendering.

AI-generated description

Comments

Sign in to join the discussion.

MIT Licensed