Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published2🌍 Public
IIlgar Akalın
Last edited Sep 19, 2021
Created on Sep 19, 2021

This visualization presents the Auto MPG dataset from the UCI Machine Learning Repository, plotting vehicle weight against horsepower while encoding origin via color and mpg through circle size. The code uses the Vega-Lite API to declaratively construct the scatter plot, registering Vega, Vega-Lite, and Vega-Tooltip for rendering and interactivity. D3’s `csv` function loads the remote data, while custom configuration adjusts axis styles and font sizes. The visualization fills the window, with tooltips displaying vehicle origin on hover.

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