Skip to main content
100%

Niko's Fork of Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes