Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

[Vega-Lite] 3.1 HTML setup

Public visualization

Viewing a saved revision (read-only)

842bf049265d40e49e791740c66d813b

[Vega-Lite] 3.1 HTML setup

0 stars2🌍 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