Skip to main content
100%

Vega-Lite API Template

✓ Published1🌍 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.

MIT Licensed

Similar vizzes