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)

b17114a018004b769528a6c5f7836aa1

Fork of Vega-Lite API Template

0 stars0🌍 Public
Yyaron-lavi
Last edited Sep 13, 2021
Created on Sep 13, 2021

This example visualizes the Auto MPG dataset from the UCI Machine Learning Repository, plotting each car as a circle positioned by miles per gallon and horsepower. Color encodes origin, while point size reflects vehicle weight, with tooltips revealing model names. Built using the Vega-Lite API and D3’s `csv` loader, it renders as an SVG via the vega-tooltip handler, dynamically fitting the viewport dimensions. Custom axis and label styling come from a shared config object, and the chart updates automatically when data loads.

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.