Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published1🌍 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.

MIT Licensed

Similar vizzes