Grammar of graphics libraries
Declarative charts built from data, marks, scales and encodings. 22 tools, ranked by GitHub stars and updated .
Libraries built on the grammar of graphics, Leland Wilkinson's model of charts as data mapped to marks through scales and encodings. Instead of picking a chart type, you declare how fields map to position, color and size, which makes new chart forms easy to compose.
By GitHub stars, the most popular grammar of graphics libraries here are G2 (12.6K stars), Vega (12K stars), and Vega-Altair (10.5K stars). 9 of 22 had commits in the last 90 days.
| 1 |
An interactive and responsive charting library based on the grammar of graphics, maintained by Alibaba. |
12.6K |
| 2 |
Vega is a visualization grammar, a declarative format for creating, saving, and sharing interactive visualization designs. |
12K |
| 3 |
Declarative statistical visualizations, based on Vega-Lite. |
10.5K |
| 4 |
A plotting system based on the grammar of graphics. |
7K |
| 5 |
Data visualization library based on G2 and React. |
6.2K |
| 6 |
Is a high-level grammar of interactive graphics. It provides a concise JSON syntax for rapidly generating visualizations to support analysis. |
5.5K |
| 7 |
A JavaScript library for exploratory data visualization. |
5.4K |
| 8 |
Grammar of graphics for Python, based on R's ggplot2. |
4.8K |
| 9 |
Plotting system based on R's ggplot2. |
3.7K |
| 10 |
Composes multiple ggplot2 plots into a single figure. |
2.6K |
| 11 |
Ggplot2-based plots with statistical test details included in the graphic. |
2.2K |
| 12 |
2D and 3D mapping and data visualization in R, including 3D renders of ggplot2 plots. |
2.2K |
| 13 |
Grammar of animated graphics that extends ggplot2. |
2K |
| 14 |
Statistical graphics for Julia based on the grammar of graphics. |
1.9K |
| 15 |
Drag-and-drop interface for building ggplot2 charts in RStudio or Shiny. |
1.9K |
| 16 |
Grammar of graphics data visualization and charting library for Flutter. |
1.8K |
| 17 |
Grammar of graphics plotting library for Python and Kotlin, by JetBrains. |
1.8K |
| 18 |
Repels overlapping text labels away from each other in ggplot2 plots. |
1.3K |
| 19 |
Grammar of graphics for graphs and networks, extending ggplot2. |
1.1K |
| 20 |
A data visualization package with a syntax similar to ggplot2 which allows you to create rich interactive graphics. |
707 |
| 21 |
Grammar of graphics plotting API for Kotlin, built on Lets-Plot. |
487 |
| 22 |
Deterministic chart library that renders the same JSON spec to identical SVG on every platform, with DuckDB inside and an MCP server for AI agents. |
3 |
Head-to-head comparisons
Categories in this topic
Frequently asked questions
What is the most popular grammar of graphics library?
Which grammar of graphics libraries are actively maintained?
Are these grammar of graphics libraries free and open source?
Missing a tool? Add it with a one-line pull request to the README.