Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Cars mpg

Public visualization

Fork of Cars mpg

0 stars2🌍 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.

Comments

Sign in to join the discussion.

MIT Licensed