Vega-Lite API Template (1)
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 descriptionA 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.