Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

dba64bc31cc74970826338089a390658

Vega-Lite API Template

0 stars1🌍 Public
CCurran Kelleher
Last edited Nov 15, 2019
Created on Nov 15, 2019

This example demonstrates a scatterplot of automobile data from the auto-mpg CSV dataset, plotting horsepower against model year. Rendered as a static SVG via the Vega-Lite API, each circle is semi-transparent black, with a tooltip showing the car name on hover. The visualization is built programmatically using `vl.markCircle()`, `vl.x()`, and `vl.y()` encodings, with data loaded asynchronously via `d3.csv`. The chart fills the browser window and uses custom axis and label styling from a shared config object.

AI-generated description

A visualization constructed using the vega-lite-api.