🌍 Public
Viewing a saved revision (read-only)
70089da9d8724820a3da46450227b3f1
Vega-Lite API Template
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 descriptionA visualization constructed using the vega-lite-api.