Fork of React & D3 Vibecoding Starter
This example visualizes a year-over-year comparison of six housing market metrics between March 2024 and March 2025, including housing inventory, new listings, closed sales, pending sales, average mortgage rate, and median home price. Grouped bar charts display absolute values for each year, with hover-revealed percentage change labels and interactive metric selection via click. Built with React and D3 v7, the code leverages `d3.csv` for data loading, `scaleBand` and `scaleLinear` for scales, and `axisBottom`/`axisLeft` for axes, with a custom `ResizeObserver` for responsive sizing.
AI-generated descriptionHousing Market Comparison Visualization
This visualization compares key housing market metrics between March 2024 and March 2025, showing:
- Housing Inventory
- New Listings
- Closed Sales
- Pending Sales
- Average Mortgage Rate (30-yr fixed)
- Median Home Price
The chart displays both the absolute values and the percentage change for each metric.