Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Vega-Lite API Template

Public visualization

Viewing a saved revision (read-only)

96cba9e5f84c4b22aefb9e21a70cea32

Vega-Lite API Template

0 stars0🌍 Public
NNadir-Zenith
Last edited Aug 29, 2021
Created on Aug 29, 2021

This visualization displays automobile data from a CSV file, plotting horsepower against origin with points colored by year and labeled by name. It demonstrates the vega-lite-api library, which programmatically constructs Vega-Lite specifications using JavaScript method chaining. The code registers Vega, Vega-Lite, and the API with vega-tooltip, then renders an interactive SVG chart that adapts to the window size. Custom axis and label styles in config.js improve readability against a dark theme.

AI-generated description

A visualization constructed using the vega-lite-api.