Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published1🌍 Public
Aandrotop
Last edited Oct 3, 2021
Created on Sep 24, 2021

This example uses the Vega-Lite API to create a scatter plot of automobile data from the UCI Auto MPG dataset, loaded via `d3.csv`. The visualization encodes the vehicle’s country of origin on the x-axis and horsepower on the y-axis, with each point representing a car model and a tooltip showing its name. The plot uses a semi-transparent circle mark to emphasize overlapping points and is rendered on a full-window canvas via `vega-lite-api` with a custom dark-themed configuration for improved readability.

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