Skip to main content
100%

ICE_7 Cars horsepower and miles per gallon(mpg)

✓ Published1🌍 Public
SShishiraRudrabhatla
Last edited Jul 1, 2022
Created on Jul 1, 2022

This scatter plot visualizes the relationship between horsepower and miles per gallon for various car models, with each point colored by the car’s origin and sized by its weight. The visualization is built using the Vega-Lite API, which constructs the chart specification in `viz.js`, while the data is loaded via `d3.csv` from a Gist derived from the UCI Auto MPG dataset. The rendering pipeline registers Vega and Vega-Lite, applies a custom config for axis and label styling, and adds interactive tooltips through the Vega-Tooltip handler.

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