Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
JJean David
Last edited Apr 9, 2021
Created on Apr 9, 2021

This example visualizes the Auto MPG dataset from the UCI Machine Learning Repository, plotting vehicle weight against horsepower. Each dot represents a car, with color encoding the region of origin, size encoding cylinder count, and a tooltip displaying the model name. The visualization is built using the Vega-Lite API, registered with Vega and Vega-Lite libraries, and rendered as an SVG via D3. Data loading relies on D3’s `csv` method, while custom axis and label styling are applied through a shared config object.

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