Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

e94c4f69d2a94c7cbce8e1d5a18d2130

Vega-Lite API Template

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