Generate a Vega-Lite chart from data using LLM
Table-in, table-out — composes downstream of SELECTs.
THEN TO_VEGALITE {{ prompt }}THEN TO_VEGALITE({{ prompt }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| _table | TABLE | — |
Generates Vega-Lite chart config rows that reference the input schema
SELECT
*
FROM
(
VALUES
('A', 10),
('B', 20)
) AS t (category, amount) THEN TO_VEGALITE ('bar chart of amount by category') THEN PYTHON (
'import json; config = df.iloc[0]["config"]; config = json.loads(config) if isinstance(config, str) else config; result = pd.DataFrame({"ok":[df.iloc[0]["format"] == "vega-lite" and "mark" in config and config["x"] == "category"]})'
)Convert timeline data to Mermaid timeline visualization
Convert triples to Mermaid graph visualization
Render a chart specification to PNG image
Artistically stylize a chart image while preserving data
Generate a Plotly chart from data using LLM
Convert triples to relational node/edge graph tables for recursive CTE traversal
Generate a Vega-Lite chart from data using LLM
Table-in, table-out — composes downstream of SELECTs.
THEN TO_VEGALITE {{ prompt }}THEN TO_VEGALITE({{ prompt }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| _table | TABLE | — |
Generates Vega-Lite chart config rows that reference the input schema
SELECT
*
FROM
(
VALUES
('A', 10),
('B', 20)
) AS t (category, amount) THEN TO_VEGALITE ('bar chart of amount by category') THEN PYTHON (
'import json; config = df.iloc[0]["config"]; config = json.loads(config) if isinstance(config, str) else config; result = pd.DataFrame({"ok":[df.iloc[0]["format"] == "vega-lite" and "mark" in config and config["x"] == "category"]})'
)Convert timeline data to Mermaid timeline visualization
Convert triples to Mermaid graph visualization
Render a chart specification to PNG image
Artistically stylize a chart image while preserving data
Generate a Plotly chart from data using LLM
Convert triples to relational node/edge graph tables for recursive CTE traversal