Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Scatter Plot Template

Public visualization

Vega-Lite API Scatter Plot Template

0 stars1🌍 Public
JJohn Kobbeman
Last edited Feb 28, 2021
Created on Feb 28, 2021

This visualization presents a scatter plot of auto-mpg data from the UCI Machine Learning Repository, using points to show vehicle weight versus horsepower. Color encodes the country of origin, while point size maps to miles per gallon. The plot is built with the Vega-Lite API, registering Vega and Vega-Lite libraries, and uses D3’s CSV parser to fetch data from a Gist. The code configures tooltips via vega-tooltip and customizes axis and label styling through a separate 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.

Comments

Sign in to join the discussion.

MIT Licensed