Skip to main content
Public

Share visualization

Loading preview…

Working Tooltips

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

Working Tooltips

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

Comments

Sign in to join the discussion.

MIT Licensed