Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
AAdhityaa A
Last edited Sep 15, 2023
Created on Sep 15, 2023

This example visualizes the relationship between miles per gallon, horsepower, origin, and weight for vehicles from the Auto MPG dataset. The scatter plot encodes the quantitative fields on the x- and y-axes while using color and size to represent categorical origin and continuous weight, with tooltips showing vehicle names. Built using the Vega-Lite API, it registers Vega, Vega-Lite, and D3’s CSV loader to fetch remote data and render an interactive SVG chart with customized 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