Render a chart specification to PNG image
Table-in, table-out — composes downstream of SELECTs.
THEN RENDERTHEN RENDER({{ width }}, {{ height }})THEN RENDER({{ width }}, {{ height }}, {{ scale }})| name | type | description |
|---|---|---|
| width(optional) | INTEGER | — |
| height(optional) | INTEGER | — |
| scale(optional) | INTEGER | — |
| _table | TABLE | — |
Renders a data-driven Plotly chart to a PNG data URL
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 (400, 300, 1) THEN PYTHON (
'result = pd.DataFrame({"ok":[str(df.iloc[0]["image"]).startswith("data:image/png;base64,")]})'
)Convert timeline data to Mermaid timeline visualization
Convert triples to Mermaid graph visualization
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
Render a chart specification to PNG image
Table-in, table-out — composes downstream of SELECTs.
THEN RENDERTHEN RENDER({{ width }}, {{ height }})THEN RENDER({{ width }}, {{ height }}, {{ scale }})| name | type | description |
|---|---|---|
| width(optional) | INTEGER | — |
| height(optional) | INTEGER | — |
| scale(optional) | INTEGER | — |
| _table | TABLE | — |
Renders a data-driven Plotly chart to a PNG data URL
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 (400, 300, 1) THEN PYTHON (
'result = pd.DataFrame({"ok":[str(df.iloc[0]["image"]).startswith("data:image/png;base64,")]})'
)Convert timeline data to Mermaid timeline visualization
Convert triples to Mermaid graph visualization
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