Fork of Vega-Lite API Template
✓ Published0🌍 Public
This example uses the Vega-Lite API to create a scatter plot of automotive data from the UCI Machine Learning Repository’s Auto MPG dataset. It renders circles encoding horsepower, miles per gallon, origin, and weight, with tooltips showing car names. The visualization is built programmatically with `vl.markCircle` and `.encode`, powered by D3’s `csv` for data loading and Vega-Lite’s `config` for customized axis and label styling. A Vega Tooltip handler enables interactive hover details.
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