Chroropleth Map with slider (d3v7)
✓ Published0🌍 Public
A choropleth map of Oklahoma counties displays student-to-teacher ratios, with an interactive range slider. The map’s fill colors update over time as users drag the slider from 1987 to 2010. The visualization is built with D3 v7, using `d3.geoConicConformal`, `d3.geoPath`, and `topojson.feature` to render map shapes from a loaded JSON file. The slider event triggers a `switch` to update county colors based on yearly data.
AI-generated descriptionChoropleth Map with slider that is based on this sample from https://gist.github.com/darrenjaworski/5397202.
The example has been upgraded from d3v3 to d3v7.
MIT Licensed