Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Working Tooltips

Public visualization

Working Tooltips

0 stars0🌍 Public
Yyyaaa1
Last edited Oct 20, 2019
Created on Oct 20, 2019
Forked from Working Tooltips

A choropleth-style scatterplot maps the geographic distribution of violent crime across U.S. states, using a circle for each crime incident. The visualization relies on vega-lite-api to construct the specification, which is registered with Vega and Vega-Lite, while a custom tooltip handler from vega-tooltip displays the department name on hover. Data is loaded from a GitHub-hosted CSV, with a filter excluding certain states and a calculated field for zip-code prefixes. The Albers USA projection and a color scale generated with d3’s range and hcl functions map coordinates and hue by crime count.

AI-generated description

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

Comments

Sign in to join the discussion.

MIT Licensed