anofox_visualization

Diagramme und Dashboards direkt aus SQL rendern — die ggplot-rs Grammar of Graphics, ausgegeben als SVG.

Maintainer: sipemu

Installation und Laden

INSTALL anofox_visualization FROM community;
LOAD anofox_visualization;

Beispiel

-- One scalar plus convenience macros. Pass columns; get an SVG per group.
WITH sales AS (SELECT * FROM (VALUES ('app', 30), ('web', 22), ('api', 12)) t(ch, n))
SELECT anofox_bar(ch, n) FROM sales; -- <svg> bar chart
-- Any chart kind via anofox_xy(..., kind := ...), or the raw JSON spec:
SELECT anofox_render('{"rows":[{"c0":"a","c1":3}],"roles":[[0,"XAXIS"],[1,"BARCHART"]]}');

Über anofox_visualization

anofox_visualization rendert Diagramme als SVG innerhalb von DuckDB, mit der ggplot-rs-Grammar-of-Graphics-Engine. Dieser Community-Build stellt die Rendering-Oberfläche bereit:

  • anofox_render(spec VARCHAR) -> VARCHAR — eine JSON-Panel-Spezifikation -> SVG
  • anofox_bar / anofox_line / anofox_scatter / anofox_area (x, y)
  • anofox_xy(x, y, kind := ‘BARCHART’, width := 640, height := 400)
  • anofox_xyc(x, y, series, kind := ‘BARCHART_STACKED’)

Die Convenience-Makros aggregieren Zeilen über list(), sodass SELECT anofox_bar(x, y) FROM t ein SVG für die Gruppe zurückgibt. Diagrammarten umfassen Balken/Linien/Flächen/Punkte, Verteilungen (Histogramm, Boxplot, Violin), Heatmaps und Choroplethenkarten aus WKT-Geometrie.

Das vollständige Toolkit — ein interaktiver Dashboard-Builder im Browser, gesperrtes schreibgeschütztes Dashboard-Serving und eine CLI — steht über einen Quellbuild des Projekts unter https://github.com/DataZooDE/anofox-visualization zur Verfügung.

Hinzugefügte Funktionen

function_name function_type description comment examples
anofox_area macro NULL NULL
anofox_bar macro NULL NULL
anofox_line macro NULL NULL
anofox_render scalar NULL NULL
anofox_scatter macro NULL NULL
anofox_xy macro NULL NULL
anofox_xyc macro NULL NULL

Überladene Funktionen

Diese Erweiterung fügt keine Funktionsüberladungen hinzu.

Hinzugefügte Typen

Diese Erweiterung fügt keine Typen hinzu.

Hinzugefügte Einstellungen

name description input_type scope aliases
datazoo_banner Show the DataZoo feedback banner when an extension is loaded in an interactive terminal (at most once a day per extension). BOOLEAN GLOBAL []