DuckCon #7

ggsql: A grammar of graphics for SQL

Teun van den Brand · DuckCon #7
10
sections
16
slides
ggsqlGrammar of GraphicsDuckDBSQLData Visualizationggplot2
Watch on YouTube ↗
01 / What is ggsql?

Combining the grammar of graphics with SQL

frame_00m24s.png
frame_00m24s.png
02 / Try it out

Interactive playground on ggsql.org

frame_02m00s.png
frame_02m00s.png
03 / Why a new tool

ggplot2 is mature but constrained

frame_02m06s.png
frame_02m06s.png
04 / The theory

The Grammar of Graphics and its implementations

frame_02m57s.png
frame_02m57s.png
05 / The ecosystem gap

Why are we building this?

frame_03m33s.png
frame_03m33s.png
06 / What we avoid

Not a function monolith, not a point-and-click BI tool

frame_04m42s.png
frame_04m42s.png
frame_05m39s.png
frame_05m39s.png
07 / Shared DNA

SQL and the grammar of graphics rhyme

frame_05m57s.png
frame_05m57s.png
08 / How it runs

Split the query from the visualization

09 / Minard demo

Rebuilding the Minard Napoleon chart, layer by layer

frame_08m03s.png
frame_08m03s.png
frame_10m12s.png
frame_10m12s.png
frame_10m24s.png
frame_10m24s.png
frame_10m27s.png
frame_10m27s.png
frame_10m39s.png
frame_10m39s.png
frame_10m42s.png
frame_10m42s.png
frame_10m45s.png
frame_10m45s.png
10 / Works wherever

Distribution, safety, and integrations

frame_10m51s.png
frame_10m51s.png

Key Takeaways