Skip to main content
100%

Hello Vega Lite API

✓ Published6🌍 Public
CCurran Kelleher
Last edited Sep 24, 2019
Created on Aug 24, 2019
Forked from HTML Starter

This visualization displays US zip codes as a dense scatterplot of points over an Albers USA projection, with each point colored by the first two digits of its zip code. The example demonstrates the vega-lite-api library, using its programmatic API to define marks, encodings, projections, and transforms. It renders to a HiDPI canvas via a scale factor, and pulls data from the Vega Datasets’ zipcodes CSV. The code uses d3’s `range` and `hcl` to generate a custom color scale.

AI-generated description

An example starting point for working with vega-lite-api. Derived from Observable: vega-lite-api.

The data shown is US zipcodes, from Vega Datasets.

Implements HiDPI Canvas.

MIT Licensed

Similar vizzes