Compare two quantitative fields and encode a category with color.
createScatterPlot
View full size
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.5release. APIs may change before1.0.0; consult the changelog when upgrading.
Start with the most common Cartesian relationships before moving into statistical layers or alternate coordinates.
Compare two quantitative fields and encode a category with color.
createScatterPlot
View full size
Aggregate values over time and split the result into series.
createLinePlot
View full size
Map two discrete fields to cells and a quantitative field to color.
createHeatmap · createTextMark · encodeText
View full size
Aggregate ordinal categories and arrange nominal groups side by side.
createBarPlot
View full size
Bin a quantitative field and count category partitions.
createHistogram
View full size
Compose ordinary marks and derived data into higher-level statistical views.
Layer observations, grouped fits, and confidence bands.
createPointMark · createRegression
View full size
Compose quartiles, whiskers, medians, and outlier points.
createBoxPlot
View full size
Use Polar coordinates when angle and radial distance express the relationship more directly than Cartesian x and y.
Compare multivariate row profiles while retaining row-level identity.
createParallelCoordinates · encodeParallelCoordinates
View full size
Map quantitative fields to clockwise angle and radial distance.
encodeTheta · encodeR · encodePointRadius
View full size
Browse the curated chart gallery →
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.