Skip to main content
100%

Fork of Cars mpg

✓ Published2🌍 Public
Ddvinubius
Last edited May 22, 2021
Created on May 22, 2021

This example visualizes the relationship between miles per gallon and horsepower for cars from the UCI Machine Learning Repository’s Auto MPG dataset. Color encodes the car’s origin, and point size reflects vehicle weight, with tooltips revealing the model name. Built with the vega-lite-api, it registers the vega and vega-lite libraries, loads CSV data via d3.csv, and renders a fully window-fitted, interactive scatter plot with a custom dark-theme configuration.

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