Skip to main content
100%

Vega-Lite API Modelo

✓ Published1🌍 Public
Mmarquesjr79
Last edited Jan 10, 2022
Created on Jan 10, 2022

A scatter plot displays auto-mpg data, mapping origin to the x-axis, horsepower to the y-axis, weight to color, and mpg to circle size for each vehicle model. Built with the Vega-Lite API, the visualization uses `vl.markCircle` with encoded fields and tooltips, while the data loads via `d3.csv` from a UCI Machine Learning Repository gist. The rendered output adapts to the window dimensions using `window.innerWidth` and `window.innerHeight` with a fit autosize, and the `vega-tooltip` handler provides interactive hover details.

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