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)

f9e70aa728844dc6bfe09ffa5ab58645

Fork of Vega-Lite API Template

0 stars0🌍 Public
MManish Singh
Last edited Apr 5, 2023
Created on Jul 15, 2022

This visualization uses a Vega-Lite API specification to render a scatter plot of Auto MPG data from the UCI Machine Learning Repository. Each circle’s position maps origin and horsepower, while its size reflects mpg and its color encodes horsepower, with tooltips showing car names. The code builds the chart using the vega-lite-api library, registers Vega and Vega-Lite, and renders SVG via D3 v5, applying a custom config for axis and label styling.

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.