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 stars0๐ŸŒ Public
SSunbinSong
Last edited Aug 24, 2022
Created on Aug 24, 2022

This visualization displays the relationship between miles per gallon, horsepower, origin, weight, and car name from the Auto MPG dataset. The Vega-Lite API constructs a scatter plot where engine weight encodes point size and country of origin drives color, with a tooltip for each vehicle. It uses `vl.markCircle`, `vl.x().fieldQ('mpg')`, and `vl.y().fieldQ('horsepower')` for quantitative axes, while `config.js` customizes axis and label styling, and `getData.js` loads the CSV via `d3.csv`.

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