🌍 Public
Fork of Cars mpg
This example visualizes the relationship between miles per gallon and horsepower for cars from the UCI Machine Learning Repository’s Auto MPG dataset. Color encodes the car’s origin, and point size reflects vehicle weight, with tooltips revealing the model name. Built with the vega-lite-api, it registers the vega and vega-lite libraries, loads CSV data via d3.csv, and renders a fully window-fitted, interactive scatter plot with a custom dark-theme configuration.
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
Comments
Sign in to join the discussion.