Vega-Lite API Template 1216
✓ Published0🌍 Public
This visualization uses the Vega-Lite API to display a scatter plot of UCI Auto MPG data, plotting miles per gallon against horsepower. Each circle represents a car model, with color encoding the country of origin, size encoding weight, and tooltips revealing the car name. The code fetches CSV data via `d3.csv`, then builds the chart programmatically using functions like `vl.markCircle` and `vl.x().fieldQ`. The visualization renders as a full-window SVG with a custom dark theme, with axis styling and tooltip formatting configured for 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