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)

c9732917d95d4195831acd853a871cf5

Fork of Vega-Lite API Template

0 stars1🌍 Public
CCees Klap
Last edited Feb 27, 2021
Created on Feb 27, 2021

This example visualizes the Auto MPG dataset from the UCI Machine Learning Repository, plotting each car model as a circle positioned by fuel efficiency (mpg) and horsepower, with color encoding the country of origin and size representing vehicle weight. The visualization is constructed programmatically using the Vega-Lite API, which registers Vega and Vega-Lite libraries to render SVG. Data is fetched asynchronously via d3.csv, and the tooltip feature from Vega-Tooltip is attached to show car names when hovering.

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.