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)

689ab4e178774e4b98246acbdc40144b

Fork of Vega-Lite API Template

0 stars1🌍 Public
DDavid Oh
Last edited Feb 16, 2022
Created on Feb 16, 2022

This example demonstrates an interactive scatter plot of the Auto MPG dataset from the UCI Machine Learning Repository, visualizing the relationship between mpg, horsepower, origin, and weight. The visualization uses the Vega-Lite API to construct the chart, with d3.csv for data loading and a custom dark-themed configuration for improved readability. The marks are rendered as semi-transparent circles with size encoding weight, color encoding origin, and tooltips displaying car names, all fitted to the full viewport.

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.