Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example uses the Vega-Lite API to create an interactive scatter plot of the Auto MPG dataset from the UCI Machine Learning Repository. The visualization encodes horsepower and miles per gallon on the x- and y-axes, while car origin and model year drive color encoding and weight determines point size. Tooltips reveal car names on hover. Built with d3.csv for data loading, the code registers Vega-Lite with a tooltip handler and renders an SVG chart that fits the full window dimensions.
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