Export Image
Export Code

Vega-Lite Scatterplot

NJ Smith

0 views in last 90 days
Last edited Aug 17, 2025
Created on Aug 17, 2025

Vega-Lite Scatterplot

This project creates an interactive scatterplot using Vega-Lite API showing car data with:

  • X-axis: Miles per gallon (mpg)
  • Y-axis: Horsepower
  • Color: Car origin (USA, Europe, Japan)
  • Size: Weight

Setup

  1. Install dependencies: npm install
  2. Build the project: npm run build
  3. Serve the files locally (e.g., with npx serve or any local server)

Data Source

The visualization uses the Auto MPG dataset from https://github.com/vega/vega-datasets

MIT Licensed