Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of HTML Starter

Public visualization

Fork of HTML Starter

0 stars0🌍 Public
NNanditha Reddy
Last edited Mar 29, 2024
Created on Mar 29, 2024
Forked from HTML Starter

This example shows a choropleth map of US states with an interactive slider that filters states by population, highlighting those above a threshold in steelblue while leaving others lightgray. The map uses D3 v7’s `d3.geoAlbersUsa` projection and `d3.geoPath` to render TopoJSON state boundaries from `us-10m.v1.json`. Population data loads from a local CSV file, and the slider triggers a filter function that updates the fill colors. The visualization also includes a legend showing the current filter percentage.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.

Comments

Sign in to join the discussion.

MIT Licensed