Vega-Lite API Template
✓ Published0🌍 Public
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 descriptionA visualization constructed using the vega-lite-api.
MIT Licensed