Quantile Choropleth
This choropleth map shows 2023 median home prices across New York State counties, colored with a quantile scale divided into five classes using `d3.scaleQuantile` and `d3.schemeBlues`. County polygons are rendered with `d3.geoPath` and a Mercator projection fitted to the state, with tooltips revealing median prices and sales counts. The visualization loads TopoJSON geography and CSV housing data, and includes a legend displaying threshold values. It uses D3 v7 for all data binding, map rendering, and interaction.
AI-generated descriptionNew York State Home Prices Choropleth Map
This visualization displays the median home prices across counties in New York State for 2023. The map uses a quantile scale with 5 color classes to show the distribution of home prices.
Features
- Choropleth map of New York State counties
- Quantile color scale showing median home prices
- Tooltip information on hover
- Legend with quantile thresholds
Data Source
The visualization uses 2023 housing data from New York State, including median home prices and number of sales by county.
File Structure
index.html- Main HTML filestyles/main.css- CSS stylesdata/data.csv- County housing datajs/- JavaScript modules:main.js- Entry point that initializes the applicationdataLoader.js- Functions to load and process datamapCreator.js- Functions to create and render the mapcolorScale.js- Functions to create color scaleslegendCreator.js- Functions to create the map legend