🌍 Public
Viewing a saved revision (read-only)
7f8bce78738b430f9cea4c1a07fc2e2c
Vega-Lite API Template
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 descriptionA visualization constructed using the vega-lite-api.