Skip to main content
100%

Vega-Lite API Template

✓ Published2🌍 Public
Ccoltonjcox92
Last edited Jan 23, 2022
Created on Jan 23, 2022

This example demonstrates a scatter plot of automobile data, using the Vega-Lite API abstraction over the Vega and Vega-Lite libraries. The visualization encodes vehicle weight and horsepower on the x and y axes, with color mapping to origin and point size reflecting miles per gallon. Data is loaded asynchronously from a CSV via d3’s csv method. The API’s programmatic interface constructs the mark specification, while a custom config enhances readability.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes