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)

b799a56467ff4f149c141a956c17491b

Fork of Vega-Lite API Template

0 stars0🌍 Public
JJamey Mccabe
Last edited Apr 19, 2023
Created on Apr 19, 2023

This example visualizes the relationship between miles per gallon and horsepower for automobiles, with points colored by region of origin. The visualization is built using the Vega-Lite API, which provides a declarative grammar for specifying charts, and is rendered as SVG via the Vega and Vega-Lite libraries. Data is loaded asynchronously using d3.csv from a GitHub-hosted auto-mpg dataset, and tooltips display vehicle names on hover. The chart is configured with custom axis styling and font sizes to improve readability.

AI-generated description

A visualization constructed using the vega-lite-api.