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)

8c8ebf6c0fa94e958da53cd69f949c75

Fork of Vega-Lite API Template

0 stars0🌍 Public
SSteven Pearce
Last edited Dec 15, 2021
Created on Dec 15, 2021

This example demonstrates the relationship between miles per gallon and horsepower for classic automobiles using a scatterplot with translucent points. The visualization loads data from a CSV file containing auto-mpg statistics and renders it through the Vega-Lite API, which is registered with Vega, Vega-Lite, and the vega-tooltip handler for interactive tooltips. The chart uses d3.csv to fetch and parse the data, while customizing axis styles and label formatting via the config object. The plot fills the entire viewport and includes tooltips displaying each vehicle’s name.

AI-generated description

A visualization constructed using the vega-lite-api.