Skip to main content
100%

Vega-Lite API Template{Temi}

✓ Published0🌍 Public
Aadewole-top
Last edited Apr 14, 2021
Created on Apr 12, 2021

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 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