Fork of Vega-Lite API Template
✓ Published0🌍 Public
This interactive scatter plot visualizes the relationship between miles per gallon, horsepower, weight, and origin for classic automobiles from the UCI Auto MPG dataset. The visualization uses the Vega-Lite API in JavaScript to define the marks and encodings, with data loaded asynchronously via D3’s `csv` method. The chart is rendered as an SVG, and the Vega-Tooltip handler displays detailed vehicle names on hover. The code also customizes axis and label styles for improved readability, following the Vega-Lite configuration format.
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