Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 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.

MIT Licensed

Similar vizzes