Artistically stylize a chart image while preserving data
Table-in, table-out — composes downstream of SELECTs.
THEN STYLIZE {{ prompt }}THEN STYLIZE({{ prompt }})THEN STYLIZE({{ prompt }}, {{ fidelity }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| fidelity(optional) | FLOAT | — |
| _table | TABLE | — |
Produces a stylized image while preserving the chart payload shape
SELECT
*
FROM
(
SELECT
'plotly' AS format,
'{"type":"bar","x":"category","y":"amount"}'::JSON AS config,
'A' AS category,
10 AS amount
UNION ALL
SELECT
'plotly',
'{"type":"bar","x":"category","y":"amount"}'::JSON,
'B',
20
) THEN RENDER (300, 200, 1) THEN STYLIZE ('watercolor painting style', 0.9) THEN PYTHON (
'image = str(df.iloc[0].get("image", "")) if len(df) else ""; result = pd.DataFrame({"ok":["image" in df.columns and image.startswith(("data:image/", "/api/images/"))]})'
)Convert timeline data to Mermaid timeline visualization
Convert triples to Mermaid graph visualization
Render a chart specification to PNG image
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
Artistically stylize a chart image while preserving data
Table-in, table-out — composes downstream of SELECTs.
THEN STYLIZE {{ prompt }}THEN STYLIZE({{ prompt }})THEN STYLIZE({{ prompt }}, {{ fidelity }})| name | type | description |
|---|---|---|
| prompt | VARCHAR | — |
| fidelity(optional) | FLOAT | — |
| _table | TABLE | — |
Produces a stylized image while preserving the chart payload shape
SELECT
*
FROM
(
SELECT
'plotly' AS format,
'{"type":"bar","x":"category","y":"amount"}'::JSON AS config,
'A' AS category,
10 AS amount
UNION ALL
SELECT
'plotly',
'{"type":"bar","x":"category","y":"amount"}'::JSON,
'B',
20
) THEN RENDER (300, 200, 1) THEN STYLIZE ('watercolor painting style', 0.9) THEN PYTHON (
'image = str(df.iloc[0].get("image", "")) if len(df) else ""; result = pd.DataFrame({"ok":["image" in df.columns and image.startswith(("data:image/", "/api/images/"))]})'
)Convert timeline data to Mermaid timeline visualization
Convert triples to Mermaid graph visualization
Render a chart specification to PNG image
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