Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Fork of Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

5ee5048db1b54a54a68a4a72eb6e70eb

Fork of Vega-Lite API Template

0 stars0🌍 Public
GGregS1290
Last edited Oct 26, 2021
Created on Oct 26, 2021

This visualization displays the relationship between engine displacement and horsepower for a collection of automobiles, with tooltips revealing the model name for each point. It uses the Vega-Lite API to declaratively define the scatter plot, with D3.js (d3.csv) loading the auto-mpg dataset from a GitHub gist. The code registers Vega, Vega-Lite, and Vega-Tooltip, and renders the chart as SVG, adjusting the view to fit the window size.

AI-generated description

A visualization constructed using the vega-lite-api.