Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Fork of Vega-Lite API Template

0 stars0🌍 Public
EElif Altundag
Last edited Aug 22, 2022
Created on Aug 22, 2022

A scatter plot correlated with car weight and horsepower reveals relationships between vehicle attributes for the Auto MPG dataset from UCI. The visualization encodes engine displacement, acceleration, and origin via point size, color, and tooltip. Built with the Vega-Lite API, the code uses `vl.markCircle`, `vl.x().fieldQ()`, and `vl.y().fieldQ()` to map quantitative fields, while `vl.color().fieldN()` applies categorical coloring. Data loads asynchronously via d3.csv from a Gist URL, and the view renders dynamically to the window size.

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