Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Mmoataznasr36
Last edited Oct 25, 2021
Created on Oct 13, 2021

This visualization displays a scatter plot of auto industry data from the UCI Machine Learning Repository’s Auto MPG dataset. It plots fuel efficiency (mpg) against horsepower, with points colored by origin, sized by vehicle weight, and showing car names as tooltips. The code uses the Vega-Lite API to generate the chart, leveraging `vl.markCircle`, `vl.encode`, and field encodings. The visualization is rendered with Vega, Vega-Lite, and Vega-Tooltip, pulling data via `d3.csv` and applying custom 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