observable-framework-lib-vega-lite
Installation
SKILL.md
Library: Vega-Lite
Observable Framework documentation: Library: Vega-Lite Source: https://observablehq.com/framework/lib-vega-lite
Vega-Lite is a “high-level grammar of interactive graphics” with “concise, declarative syntax to create an expressive range of visualizations for data analysis and presentation.” It is an alternative to Observable Plot. Vega-Lite is available by default in Markdown as vl, but you can import it explicitly as:
import * as vega from "npm:vega";
import * as vegaLite from "npm:vega-lite";
import * as vegaLiteApi from "npm:vega-lite-api";
const vl = vegaLiteApi.register(vega, vegaLite);
You can use the Vega-Lite JavaScript API to construct a chart: