Skip to main content
100%

ICE-6 Bar Graph

✓ Published0🌍 Public
SSUSHMA CHIRRA
Last edited Mar 24, 2023
Created on Mar 23, 2023

This bar graph shows average monthly rent prices for twelve US cities, with city names on the vertical axis and rent amounts on the horizontal axis. The visualization uses React hooks to manage state and fetch CSV data via `d3.csv`, then renders SVG rectangles scaled through `scaleBand` for the y-axis and `scaleLinear` for the x-axis. Grid lines are generated with `xScale.ticks()` and labeled using text elements. The data comes from a gist-hosted salaries CSV file, and the graph updates once the asynchronous data loading completes.

AI-generated description

A whole smiley face

MIT Licensed

Similar vizzes