Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed