Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
MManish Singh
Last edited Apr 5, 2023
Created on Jul 15, 2022

This visualization uses a Vega-Lite API specification to render a scatter plot of Auto MPG data from the UCI Machine Learning Repository. Each circle’s position maps origin and horsepower, while its size reflects mpg and its color encodes horsepower, with tooltips showing car names. The code builds the chart using the vega-lite-api library, registers Vega and Vega-Lite, and renders SVG via D3 v5, applying a custom config for 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