Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example visualizes the Auto MPG dataset from the UCI Machine Learning Repository as a scatter plot, mapping miles per gallon on the x-axis against horsepower on the y-axis. Each point represents a car model, with a tooltip displaying the vehicle name on hover. The visualization is built using the Vega-Lite API, which wraps Vega and Vega-Lite specifications, while D3’s `csv` function loads the remote data. The chart renders as an SVG, with custom configuration adjusting axis style, label font sizes, and colors for improved 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