Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

65cb4a8a3f9546d5b06754ff439d0468

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.