Skip to main content
100%

Vega-Lite API Template (1)

✓ Published0🌍 Public
AAndres de la Garza
Last edited Mar 1, 2021
Created on Mar 1, 2021

This visualization shows a scatter plot of automobile data from the UCI Auto MPG dataset, plotting population against horsepower with point size scaled by weight. The chart is built using the Vega-Lite API, which programmatically constructs a Vega-Lite specification through JavaScript calls like `vl.markPoint()` and `vl.x().fieldQ()`. It loads data asynchronously via `d3.csv`, applies a custom configuration for axis styling, and renders to SVG with interactive tooltips powered by `vega-tooltip`. The visualization fills the browser window and auto-fits its dimensions to the viewport.

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