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)

ab3034067211417cbdc2604df8dc934e

[Vega-Lite] 3.1 HTML setup

0 stars0🌍 Public
Ggloriadelasheras
Last edited Mar 16, 2022
Created on Mar 16, 2022
Forked from HTML Starter

This example shows a minimal HTML setup for embedding a Vega-Lite visualization, loading a specification from an external JSON file. The page includes a single `<div id="vis">` container and uses the Vega, Vega-Lite, and Vega-Embed libraries from a CDN. The `vegaEmbed` function attaches the chart defined in `line.vl.json` to that container, with errors logged to the console via `catch(console.warn)`. The code relies on standard HTML and JavaScript without any framework.

AI-generated description

A bare minimum HTML page demonstrating use of CSS and JavaScript.

See also React Starter.