NY State Map 3 - working-Filtering Dashboard
This dashboard visualizes New York State housing market data from 2022 to 2024 across counties, featuring a choropleth map (d3.geoPath with a Mercator projection) colored by median home price, a bar chart of sales counts, and a line chart (d3.line) of price trends. Using D3.js, users select a year via dropdown to update all charts, and clicking a county on the map filters every chart to that county, highlighting selections in red. The bar chart shows the top 15 counties by sales when unfiltered, and the trend chart overlays lines for the top five counties by median price. Data is loaded from a CSV and processed through a custom `DataLoader` singleton that broadcasts updates to all registered chart listeners.
AI-generated descriptionNew York State Housing Dashboard
This dashboard visualizes housing market data across counties in New York State from 2022 to 2024.
Features
- Interactive map showing median home prices by county
- Click on counties to filter all charts to show data for that county only
- Bar chart showing number of sales by county
- Line chart showing price trends over time
- Key metrics summary
- Top counties by median price listing
- Year selection for temporal analysis
Data
The dashboard uses housing market data including number of sales and median home prices for each county in New York State from 2022 to 2024.
Usage
- Select a year from the dropdown menu to view data for that year
- Click on a county in the map to filter all charts to show data for that county only
- Click the "Reset Filter" button to show data for all counties again
- Hover over chart elements to see detailed information via tooltips
Technical Implementation
The dashboard is built using:
- D3.js for data visualization
- TopoJSON for mapping
- Pure JavaScript for interactivity