Skip to main content
100%

Working Tooltips

✓ Published1🌍 Public
CCurran Kelleher
Last edited Aug 31, 2019
Created on Aug 30, 2019
Forked from Zip Code Trails

This example displays a map of U.S. zip code locations as colored dots, with each color corresponding to the first two digits of the zip code. Hovering over a dot reveals a tooltip showing the state name. The visualization uses the Vega-Lite API to define the circle marks, projection, and encoding, while the vega-tooltip library handles the interactive tooltips. Data comes from the vega-datasets zipcodes.csv file, filtered to exclude non-continental states.

AI-generated description

An attempt at getting tooltips to work with vega-lite-api.

MIT Licensed

Similar vizzes