Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example uses the Vega-Lite API to plot automobile performance data from the UCI Auto MPG dataset. A bubble chart displays engine displacement (mpg) against horsepower, with circle size encoding vehicle weight and color indicating the country of origin. Hovering a point reveals the car’s name via a tooltip. The visualization is built programmatically with `vega-lite-api`, rendered to SVG through `vega`, and includes the `vega-tooltip` handler. Appearance customization modifies axis labels and tick marks to improve readability.
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