Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Rralphk11
Last edited Oct 22, 2021
Created on Oct 22, 2021

This example uses the Vega-Lite API to create a scatter plot of automotive data from the UCI Machine Learning Repository’s Auto MPG dataset. It renders circles encoding horsepower, miles per gallon, origin, and weight, with tooltips showing car names. The visualization is built programmatically with `vl.markCircle` and `.encode`, powered by D3’s `csv` for data loading and Vega-Lite’s `config` for customized axis and label styling. A Vega Tooltip handler enables 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