Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published1🌍 Public
IIlia Katkovnik
Last edited Mar 19, 2021
Created on Mar 19, 2021

This example showcases a scatter plot of the Auto MPG dataset from the UCI Machine Learning Repository, visualizing miles per gallon against horsepower. Points are colored by origin and scaled by weight, with tooltips revealing car names. The visualization is built using the Vega-Lite API’s `vl.markCircle` with encoding methods like `vl.x().fieldQ()` and `vl.color().fieldN()`. It loads data via `d3.csv`, configures axis styling in `config.js`, and integrates Vega-Tooltip for interactive hover details.

AI-generated description

A visualization constructed using the vega-lite-api.

The data shown here comes from the UCI Machine Learning Repository: Auto MPG Data Set, via Gist: Scatter Plot with Menus.

MIT Licensed

Similar vizzes