Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
LLorenzo Casbarra
Last edited Nov 23, 2023
Created on Nov 23, 2023

This example visualizes the Auto MPG dataset from the UCI Machine Learning Repository, plotting each car’s origin against its horsepower as a scatter plot. It uses the Vega-Lite API to define the chart and encode the data, with circle marks colored by origin and tooltips showing car names on hover. The visualization loads CSV data via d3.csv, applies custom axis and label styling through a Vega-Lite config object, and renders the final output using Vega and Vega-Lite JavaScript libraries with SVG rendering and tooltip support.

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