Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
SShanmukh
Last edited Apr 19, 2024
Created on Apr 19, 2024

This visualization displays a scatter plot of automotive data from the UCI Auto MPG dataset, mapping engine horsepower against fuel efficiency (mpg). Each point’s color encodes the car’s country of origin, while the point size represents vehicle weight and a tooltip reveals the car model name. The code uses the Vega-Lite API to declaratively build the chart, with D3’s `csv` function for data loading and Vega tooltip for interactive hover details. The visualization dynamically fits to the browser window dimensions.

AI-generated description

A 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

Similar vizzes