Vega-Lite API Template
✓ Published1🌍 Public
This example demonstrates a scatter plot of automobile data from the UCI Machine Learning Repository, showing relationships between weight, horsepower, miles per gallon, and country of origin. It uses the Vega-Lite API to declaratively encode these quantitative and categorical fields with circular marks, including tooltips for car names. The code integrates Vega, Vega-Lite, Vega-Lite API, and Vega-Tooltip libraries alongside D3 for CSV data loading, with custom configuration for axis styling and responsive sizing.
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