Skip to main content
Public

Share visualization

Loading preview…

Chroropleth Map with slider (d3v7)

vizhub.com

Shared links may look like this on X, LinkedIn, Slack, and Discord.

Before sharing, review the publishing checklist.

Choose how to deliver this visualization

LinkedIn caption

LinkedIn may not keep text supplied by the share sheet. Copy the caption and paste it into the post if needed. You can tag the VizHub company page when posting.

More options

Embed on a websiteCopy iframe embed code
Download & exportPNG, HTML, source ZIP

Chroropleth Map with slider (d3v7)

0
AAlark Joshi
Last edited Apr 23, 2024
Created on Apr 23, 2024
Forked from HTML Starter

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 description

Choropleth 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.

Comments

Sign in to join the discussion.

MIT Licensed