Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

efe0aaa2788f435c9f4c17b726350f49

Vega-Lite API Template

0 stars0🌍 Public
Mmkt-ds
Last edited Oct 27, 2019
Created on Oct 27, 2019

This visualization uses the Vega-Lite API to plot automobile data from the auto-mpg CSV dataset, showing the relationship between weight, horsepower, fuel efficiency (mpg), and car model name. Circles are sized by mpg and colored by weight, with tooltips displaying the model name. The code registers Vega, Vega-Lite, and the Vega-Lite API, fetches data via d3.csv, and renders an SVG view that fits the window dimensions with customized axis and label styling.

AI-generated description

A visualization constructed using the vega-lite-api.