Skip to main content
100%

Fork of Vega-Lite API Template - scatter plot

✓ Published1🌍 Public
MMahesha999
Last edited Feb 7, 2022
Created on Feb 7, 2022

A scatter plot visualizes the relationship between miles per gallon (mpg), horsepower, and weight for vehicles from the Auto MPG Data Set. The circles are colored by origin, with size encoding weight, and hovering reveals the vehicle name via tooltip. Built with d3.v5 and the Vega-Lite API, it uses `vl.markCircle`, `.encode()`, and `vl.x()`/`vl.y()` scales, while `getData.js` loads the CSV using d3.csv and config.js customizes axis and label styling.

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