🌍 Public
Viewing a saved revision (read-only)
023f3f78d3db4acb86f7b1fc5365a235
Vega-Lite API Template
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.