Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Niko's Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

a6d65415120b42228be8699a28638a7c

Niko's Fork of Vega-Lite API Template

0 stars0🌍 Public
NNicholas Francis O'Brien
Last edited Oct 6, 2022
Created on Oct 6, 2022

This example renders an interactive scatter plot of the classic auto-mpg dataset, sourced from a CSV via D3’s `csv` function. Each point represents a car, with engine origin on the x-axis, horsepower on the y-axis, weight mapped to color, mpg to symbol size, and a tooltip showing the model name. Built with the Vega-Lite API wrapper, it registers Vega and Vega-Lite, configures an SVG view with a custom dark theme, and uses a D3-based handler for tooltip interaction. The visualization auto-fits to the window dimensions.

AI-generated description

A visualization constructed using the vega-lite-api.