Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
MMohammadSorkhian
Last edited Aug 30, 2021
Created on Aug 30, 2021

This example shows a scatter plot of automotive data from the UCI Machine Learning Repository’s Auto MPG dataset, visualizing miles per gallon against horsepower. Each point is colored by origin and sized by vehicle weight, with tooltips revealing car names. The visualization uses the Vega-Lite API to declaratively define the chart, which is embedded via vega, vega-lite, and vega-tooltip. Data loading relies on d3.csv, while custom axis and label styling are applied through a Vega-Lite config object.

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