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)

a48bc53cce0d4eba8999c8027f9ef6ba

Fork of Vega-Lite API Template

0 stars0🌍 Public
TTsaikkari
Last edited Jul 31, 2021
Created on Jul 31, 2021

This gallery example shows a scatter plot of auto-mpg data, with horsepower on the y-axis and year on the x-axis. Each circle’s size encodes vehicle weight, while its color represents the country of origin, and hovering reveals the car’s name. Built with the Vega-Lite API, it loads CSV data via d3.csv and renders the visualization using Vega and Vega-Lite, with a customized config and tooltip handler.

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.