Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template - Part 2

Public visualization

Viewing a saved revision (read-only)

9fbca9212c364974be2d18540d9bc171

Vega-Lite API Template - Part 2

0 stars1🌍 Public
JJohn Jeevasaeyan
Last edited Sep 6, 2021
Created on Sep 6, 2021

This example displays a scatter plot of automotive data, showing the relationship between miles per gallon and horsepower. Each circle encodes vehicle weight through color and engine displacement through size, with interactive tooltips revealing the car model name. The visualization is built using the Vega-Lite API, which composes specifications programmatically, and renders through Vega with D3.js for data loading via `d3.csv`. The data originates from the classic auto-mpg dataset hosted as a GitHub gist.

AI-generated description

A visualization constructed using the vega-lite-api.