Chart Recipes
Use a recipe when you know the chart type and want the shortest supported action flow. Each recipe separates the decisions you must provide from the resources, defaults, and guides that ggaction can infer.
Heatmap
Map two discrete fields to cells and a quantitative field to color.
createHeatmap
createTextMark
encodeText
Regression scatterplot
Layer observations, grouped fits, and confidence bands.
createPointMark
createRegression
Density area
Estimate grouped distributions and draw baseline-closed areas.
createAreaMark
encodeDensity
encodeColor
Horizon chart
Compress a long time series by folding values above and below a baseline.
createAreaMark
encodeHorizon
editHorizon
Violin plot
Compare complete distribution shapes across categories with symmetric or split density areas.
createViolinPlot
editDensity
Program composition
Compare distinct child panels, edit their layout, and replace one stable slot.
hconcat
editCompositionLayout
replaceCompositionChild
Faceted scatterplot
Repeat a complete point or bar chart by field value.
facet
editFacetHeaders
editCompositionLayout
Parallel coordinates
Compare multivariate row profiles while retaining row-level identity.
createParallelCoordinates
encodeParallelCoordinates
Rose chart
Compare radial magnitudes inside ordered categorical sectors.
createArcMark
encodeTheta
encodeR
Gradient plot
Compare complete distribution shapes across categories in a compact strip.
createGradientPlot
editGradientPlot
Annotated scatterplot
Attach readable data labels to final point, bar, or rule items.
createTextMark
encodeText
editTextMark
Development trajectories
Connect repeated and non-monotonic positions by a separate quantitative order field.
createLineMark
encodePathOrder
removePathOrder
Every flow begins with createCanvas, createData, and a semantic mark or
composite action. Add explicit IDs only when the current program contains more
than one compatible resource.
Each recipe labels its primary snippet as runnable. Later snippets revise the
named program produced by that primary flow unless they repeat an import and
complete setup explicitly.