Skip to main content
100%

Quantile Choropleth

✓ Published3🌍 Public
CCurran Kelleher
Last edited May 14, 2025
Created on May 13, 2025

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 description

New 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 file
  • styles/main.css - CSS styles
  • data/data.csv - County housing data
  • js/ - JavaScript modules:
    • main.js - Entry point that initializes the application
    • dataLoader.js - Functions to load and process data
    • mapCreator.js - Functions to create and render the map
    • colorScale.js - Functions to create color scales
    • legendCreator.js - Functions to create the map legend
MIT Licensed

Similar vizzes