Vega-Lite API Template
✓ Published1🌍 Public
This gallery example demonstrates relationships among vehicle attributes in the Auto MPG dataset from the UCI Machine Learning Repository. A scatter plot displays miles per gallon on the x-axis and horsepower on the y-axis, with circles colored by country of origin and sized by vehicle weight. The visualization is built using the Vega-Lite API, which is registered with Vega and Vega-Lite libraries, and renders to SVG. Data loading uses d3.csv, while the vega-tooltip Handler enables interactive hover details showing the car model name.
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