Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

57e7b50111ca463bae36efc9c5e7563b

Fork of Vega-Lite API Template

0 stars0🌍 Public
GGuus Lammers
Last edited Mar 1, 2022
Created on Mar 1, 2022

This example presents a scatter plot of automotive data, showing the relationship between vehicle weight and horsepower. Each circle’s position encodes these quantitative fields, while color represents the country of origin and size encodes miles per gallon (mpg). Hovering reveals the car’s name via a tooltip. The visualization is built with the vega-lite-api, which wraps Vega-Lite and Vega, and uses d3.csv to load the auto-mpg dataset. The code configures axes, scales, and styling through the vega-lite-api’s fluent method chaining.

AI-generated description

A visualization constructed using the vega-lite-api.