Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes