Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

16eee950503140c3bec98a2f40bb72da

Fork of Vega-Lite API Template

0 stars0🌍 Public
MMerceEscalante
Last edited May 17, 2021
Created on May 17, 2021

This visualization displays the relationship between miles per gallon, horsepower, weight, and origin for automobiles from the Auto MPG dataset. Using the Vega-Lite API, it renders a scatter plot with color encoding for origin and size encoding for weight, while tooltips reveal vehicle names. The code leverages `vl.markCircle`, `vl.x()`, `vl.y()`, and `vl.color()` to define the marks, with data loaded via d3.csv from a GitHub Gist.

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.