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)

401602ae119e4fc5aa2afe12af8dde32

Fork of Vega-Lite API Template

0 stars0🌍 Public
Cchengfengmf
Last edited Apr 30, 2021
Created on Apr 30, 2021

This example uses the Vega-Lite API to render an interactive scatter plot of the Auto MPG dataset from the UCI Machine Learning Repository. Each circle encodes vehicle miles per gallon, horsepower, weight, and country of origin, with tooltips displaying model names. The code registers Vega-Lite and Vega-Tooltip through the vega-lite-api module, loads data with d3.csv, and dynamically fits the plot to the window size. Custom axis and label styling from a config object improve readability across the visualization.

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.