Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
Kkrishanub03@gmail.com
Last edited Jun 2, 2024
Created on Jun 2, 2024

This example uses the Vega-Lite API to construct a scatter plot of historic automobile data from the UCI Machine Learning Repository’s Auto MPG dataset. The visualization encodes miles per gallon on the x-axis, horsepower on the y-axis, and uses circle color to distinguish the car’s region of origin, with weight mapped to point size and a tooltip revealing the model name. It loads CSV data via `d3.csv` and relies on vega, vega-lite, and vega-lite-api to render the chart, while vega-tooltip adds interactive pop-ups.

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