Hello Vega Lite API
✓ Published6🌍 Public
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 descriptionAn 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