Skip to main content
100%

[Vega-Lite] 3.1 HTML setup

✓ Published2🌍 Public
DDiego Rojo
Last edited Mar 15, 2022
Created on Mar 15, 2022
Forked from HTML Starter

This example demonstrates a minimal HTML setup for embedding a Vega-Lite visualization in a web page. It loads the Vega, Vega-Lite, and Vega-Embed JavaScript libraries from a CDN and creates a single empty div element with the ID “vis”. The code does not include any chart specification or data, so it only provides the foundational structure and script tags required to render a chart later. The Vega-Embed library would populate the div with a visualization once a specification is supplied.

AI-generated description
MIT Licensed

Similar vizzes