Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
Ddumbdataguy@gmail.com
Last edited Oct 21, 2023
Created on Oct 21, 2023

This visualization displays the relationship between miles per gallon, horsepower, and model year for vehicles in the Auto MPG dataset from the UCI Machine Learning Repository. Using the Vega-Lite API, it renders a scatter plot where circle size encodes year and color encodes mpg. The code registers Vega-Lite with Vega, applies a custom configuration for axis styling, and loads the data via d3.csv. The rendering is fitted to the browser window with an SVG output.

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