Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Vega-Lite API Template

0 stars1🌍 Public
BBrittany Harden
Last edited Dec 10, 2022
Created on Dec 10, 2022

This example demonstrates a scatter plot of automobile data from the UCI Machine Learning Repository, showing relationships between weight, horsepower, miles per gallon, and country of origin. It uses the Vega-Lite API to declaratively encode these quantitative and categorical fields with circular marks, including tooltips for car names. The code integrates Vega, Vega-Lite, Vega-Lite API, and Vega-Tooltip libraries alongside D3 for CSV data loading, with custom configuration for axis styling and responsive sizing.

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.

Comments

Sign in to join the discussion.

MIT Licensed