Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example uses the Vega-Lite API to create a scatter plot of the Auto MPG Data Set from the UCI Machine Learning Repository, loaded via D3’s `csv` function. The visualization renders circles encoding weight on the x-axis, horsepower on the y-axis, and a color scale for weight, with a tooltip displaying vehicle names. It demonstrates the declarative `vl` API, combining `markCircle`, `encode`, and configurable axes, while leveraging Vega, Vega-Lite, and Vega-Tooltip for interactive rendering. The chart fills the window and adapts to its size.
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.
MIT Licensed