G
Data & Analytics

ggsql

Write a chart the same way you write a SQL query — from Hadley Wickham

PriceOpen Source (free, alpha)Reviewed2026-04-20
Verdict — Ship
3 Ships1 Skips
Visit opensource.posit.co

The Panel's Take

ggsql is an alpha-stage visualization tool from Posit (makers of RStudio) that brings the grammar of graphics directly into SQL. Instead of exporting to R or Python for plotting, analysts can write VISUALIZE statements alongside their SQL queries and get publication-quality charts as output. The syntax is designed to be spoken aloud: "VISUALIZE bill_len AS x, bill_dep AS y FROM ggsql:penguins DRAW point" is a readable declaration, not a configuration object. The project comes from a credible lineage: built by Thomas Lin Pedersen, Teun Van den Brand, George Stagg, and Hadley Wickham — the team behind ggplot2, the most-downloaded R package of all time. Hadley's involvement signals this isn't an experiment from a junior team; it's a considered effort to bring the ggplot philosophy to SQL-native workflows. Outputs render as self-contained HTML with inline SVG charts (no JavaScript runtime required) and PDF exports, usable in Quarto, Jupyter, Positron, and VS Code. With 281 points on Hacker News on launch day, the reception reflects genuine excitement from the data analytics community. The SQL-native approach matters because it meets analysts where they already work — rather than asking them to learn yet another visualization library. Whether ggsql becomes a standard layer in the modern data stack depends on how the alpha stabilizes, but the concept and team behind it are both strong.

The reviews

The Builder
Builder
Ship

The Hadley Wickham signal alone is worth paying attention to. Grammar of graphics in SQL is the obvious next step for data stack tools, and having the person who invented ggplot2 leading the effort means the underlying design will be coherent, not bolted-on. Even in alpha, this is worth integrating into a Quarto workflow.

Helpful?
The Skeptic
Skeptic
Skip

Alpha software from an academic-leaning team with a history of slow iteration. ggplot2 is phenomenal but it took years to stabilize. The SQL grammar also risks becoming a DSL-within-a-DSL mess as edge cases pile up. Wait for the beta and see if the syntax holds up against real production query patterns.

Helpful?
The Futurist
Futurist
Ship

The convergence of AI-generated SQL and visualization is inevitable. When LLMs can write VISUALIZE statements as naturally as SELECT statements, the distinction between 'data pipeline' and 'dashboard' disappears. ggsql is building the primitive that makes that future possible.

Helpful?
The Creator
Creator
Ship

Self-contained HTML output with inline SVG is the right format for sharing data stories — no dependencies, no runtime, just open the file. For newsletters, reports, and presentations, being able to generate a chart directly from a query without a Python script in between is a workflow improvement I'd use daily.

Helpful?

Bookmarks

No bookmarks yet

Bookmark tools to save them for later