temperature_data.csv
✓ Published0🌍 Public
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 descriptionMIT Licensed