ggaction 0.0.5

ggaction

A grammar for how charts are made.

Most visualization grammars describe a finished chart. ggaction represents chart authoring itself as an immutable, traceable sequence of graphical actions.

Build, inspect, select, and revise charts one meaningful action at a time.

Start with a complete example, then use the API pages when you need to customize one part. The main, extension, and PNG entry points include TypeScript declarations.

Release status: This documentation describes the experimental 0.0.5 release. APIs may change before 1.0.0; consult the changelog when upgrading.

Start here

Build your first chart Install the package, render a complete chart, and understand the action chain. Start from a chart type Copy the shortest supported scatterplot, line, bar, or area flow. Find an action Look up exact signatures, defaults, inference, and related guides.

Essential charts

Start with the most common Cartesian relationships before moving into statistical layers or alternate coordinates.

Statistical and layered charts

Compose ordinary marks and derived data into higher-level statistical views.

Coordinate extensions

Use Polar coordinates when angle and radial distance express the relationship more directly than Cartesian x and y.

Go deeper

Understand immutable ChartProgram state, semantic and graphical state, and action trace trees. Extension authors can continue with action authoring and the primitive API. For boundaries and failures, see supported features and troubleshooting. Language models can use the concise documentation index or the generated full-text bundle.

Source, issues, and development history are available on GitHub.