GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - posit-dev/ggsql: A SQL extension for declarative data visualisation based on the Grammar of Graphics.

BranchesTags
Open more actions menu

Latest commit

 

History

470 Commits
470 Commits

Folders and files

NameName
Last commit message
Last commit date
.cargo
.cargo
 
 
.github
.github
 
 
.vscode
.vscode
 
 
doc
doc
 
 
ggsql-cli
ggsql-cli
 
 
ggsql-jupyter
ggsql-jupyter
 
 
ggsql-vscode
ggsql-vscode
 
 
ggsql-wasm
ggsql-wasm
 
 
src
src
 
 
tree-sitter-ggsql
tree-sitter-ggsql
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CHANGELOG.md
CHANGELOG.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
INSTALLERS.md
INSTALLERS.md
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
entitlements.plist
entitlements.plist
 
 

Repository files navigation

ggsql website ggsql

A SQL extension for declarative data visualization based on the Grammar of Graphics.

ggsql allows you to write queries that combine SQL data retrieval with visualization specifications in a single, composable syntax.

Example

SELECT date, revenue, region
FROM sales
WHERE year = 2024

VISUALISE date AS x, revenue AS y, region AS color
DRAW line
SCALE x
  SETTING breaks => 'month'
LABEL title => 'Sales by Region'

Why?

Many data analysts are naturally at home in SQL and spend more time there than in a programming language like Python or R. Having to extract data, context switch to a new programming language, import data, etc. is cumbersome when all you want to do is understand the data you are working with right now.

ggsql is built for immediate familiarity and alignment with the SQL language. It is further built on the foundation of the grammar of graphics known from ggplot2 which affords a composable syntax capable of simple as well as arbitrarily complex visualizations.

The syntax has been designed to be easy to learn, read, and write. This also means that it is a great fit for AI agents to produce as the output query is immediately easy to understand and validate by the user so that you can have certainty in its validity.

Project status

Our current release is in alpha with the main architectural parts finished, but is still subject to change. Future development will focus on adding new readers (database support) and writers (output types) to compliment the DuckDB/SQLite + Vegalite setup we have focused on during early development.

Installation

Please follow the instructions on the website for up to date information on how to install ggsql.

Try it out

ggsql compiles to WASM and can thus be embedded in a website. You can try it out on our playground (no installation required).

Learn more

Browse the documentation to learn of all ggsql has to offer. Complete with interactive examples to try out.

About

A SQL extension for declarative data visualisation based on the Grammar of Graphics.

ggsql.org/

Resources

Readme
MIT license

Code of conduct

Code of conduct
Activity
Custom properties

Stars

574 stars

Watchers

7 watching

Forks

32 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.