Skip to main content
100%

Fork of Vega-Lite API Template

✓ Published0🌍 Public
SSimon Davis
Last edited May 12, 2021
Created on May 12, 2021

This example shows a scatter plot of automobile displacement against horsepower, with each point representing a car model and tooltips revealing the vehicle name on hover. The visualization uses the Vega-Lite API to declaratively define the mark encoding and scales, while D3's `csv` function loads the auto-mpg dataset from a GitHub gist. The chart renders as a full-window SVG using Vega's renderer, with Vega-Tooltip handling interactive hover details. Custom axis and label styling from the `config` object improves readability against a clean background.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes