Skip to main content
100%

Vega-Lite API Template

✓ Published1🌍 Public
EElvira Nassirova
Last edited Jun 10, 2021
Created on Jun 10, 2021

This gallery example demonstrates relationships among vehicle attributes in the Auto MPG dataset from the UCI Machine Learning Repository. A scatter plot displays miles per gallon on the x-axis and horsepower on the y-axis, with circles colored by country of origin and sized by vehicle weight. The visualization is built using the Vega-Lite API, which is registered with Vega and Vega-Lite libraries, and renders to SVG. Data loading uses d3.csv, while the vega-tooltip Handler enables interactive hover details showing the car model name.

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