Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

trytry

Public visualization

Viewing a saved revision (read-only)

4a4b087c85c8456188b544d930efac59

trytry

0 stars0🌍 Public
Uunolys
Last edited Dec 12, 2021
Created on Dec 12, 2021
Forked from D3 Starter

This example shows an interactive map of New York City boroughs, where each borough’s fill color represents the length of its name. Users can hover over or click individual boroughs to trigger visual feedback. The map is rendered using D3 v3 with `d3.json` to load GeoJSON data, `d3.geo.path` for projecting and drawing the borough outlines, and `d3.scale` for mapping name lengths to colors. The code sets up mouseover, mouseout, and click event handlers for each path.

AI-generated description

A demonstration of how to start using D3 version 6.