Skip to main content
100%

Vega-Lite API Template

✓ Published0🌍 Public
AAhmad Butt
Last edited Mar 3, 2021
Created on Mar 3, 2021

This example demonstrates a Vega-Lite API template that visualizes automobile data from a CSV file, plotting engine displacement against horsepower with semi-transparent points and tooltips showing car names. The code loads data using `d3.csv` from a GitHub gist, then constructs the visualization programmatically through the `vega-lite-api` library, which registers with `vega` and `vega-lite`. Custom styling via a `config` object improves readability, and the visualization is rendered as an SVG that fits the browser window using `autosize`.

AI-generated description

A visualization constructed using the vega-lite-api.

MIT Licensed

Similar vizzes