Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
Ddev-ignacio-h
Last edited Mar 4, 2021
Created on Mar 4, 2021

This example demonstrates a scatter plot of automobile data from the auto-mpg dataset, showing the relationship between engine displacement and horsepower, with tooltips displaying car names. The visualization is built programmatically using the Vega-Lite API, which registers Vega and Vega-Lite libraries to create a lightweight, declarative chart specification. Data is loaded asynchronously via d3.csv, while the layout adapts to the full viewport with custom axis styling and opacity-adjusted point marks for readability. The result renders as scalable SVG through the Vega view engine.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes