Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Fork of Vega-Lite API Template

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed