Skip to main content
๐ŸŒ Public

Share visualization

Send this visualization to others.

ICE6-BAR graph fork Yashwanth with D3.js

Public visualization

ICE6-BAR graph fork Yashwanth with D3.js

0 stars0๐ŸŒ Public
YYashwanth0311
Last edited Mar 21, 2024
Created on Mar 19, 2024

This bar chart visualizes average temperatures for multiple cities, with each city represented by a blue rectangle and the y-axis encoding temperature values. The visualization uses D3.js v5 scales (scaleBand for the x-axis, scaleLinear for the y-axis) alongside React hooks to manage CSV data loading and rendering. Axes are generated using d3.axisBottom and d3.axisLeft, while the temperature data is loaded from a remote CSV file. The chart includes labeled axes for "Cities" and "Temperature," with a 10-unit headroom added to the y-axis maximum for visual spacing.

AI-generated description

A responsive bar chart.

Comments

Sign in to join the discussion.

MIT Licensed