🌍 Public
Viewing a saved revision (read-only)
80f84e2ba10440799b932191f546e6fd
Fork of Vega-Lite API Template
This scatter plot visualizes the relationship between the origin and horsepower of cars from the Auto MPG dataset. The visualization is built programmatically using the Vega-Lite API, which registers Vega and Vega-Lite libraries to render an interactive SVG chart. It loads data from a CSV file via `d3.csv`, applies custom axis and label styling, and uses a tooltip handler to display car names on hover. The chart automatically fits the browser window dimensions.
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.