Vega-Lite API Template{Temi}
This interactive scatter plot visualizes the relationship between fuel efficiency (mpg) and horsepower for various car models, with point color indicating country of origin and point size reflecting vehicle weight. Built using the Vega-Lite API, the visualization reads data from the UCI Auto MPG dataset via d3.csv, renders with Vega-Lite’s markCircle encoding, and includes an interactive tooltip displaying car names. The chart dynamically fills the browser window through the API’s width, height, and autosize settings, with a custom config adjusting axis and label styling.
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.