Created from react-d3-starter template
US Metro Home Values Explorer
A bump chart tracking how the home-price ranking of the top 15 US metros changed over time, built with React and D3.
Features
- Loads real housing price data from
data/housing_prices_us_metros.csvat runtime. - Computes the price ranking of each of the top 15 metros by size at several sampled years (2000, 2005, 2010, 2015, 2020, 2025, and the latest year present).
- Uses a time scale for the x-axis so the hover crosshair can snap to the nearest sampled date.
- Click a line or its right-side label to highlight a single metro.
- Hover for a tooltip showing the actual dollar value for every metro at that date.
Files
index.jsx— React entry point.App.jsx— Loads the CSV, prepares the ranked series, and renders the chart + tooltip.viz.js— D3 rendering of the bump chart and the hover crosshair layer.useContainerDimensions.js— ResizeObserver hook.styles.css— Styling.
Comments
Sign in to join the discussion.