Skip to main content

AML PopBlock

Knowledge Checkpoint

A grasp of these concepts will help you understand this documentation better:

PopBlock adds a Period-over-Period (PoP) control to the dashboard. Viewers use it to compare metrics across time periods (this month vs last month, this year vs last year) on connected visualization blocks. It is connected to visualization blocks via a PopInteraction.

block <name>: PopBlock {
label: 'Control Label'
description: '' // optional
default { // optional
// --- Relative type ---
type: 'relative'
duration: 1
granularity: 'month'
show_growth_rate: true

// --- OR Absolute type ---
// type: 'absolute'
// duration: ['2026-01-01', '2026-01-31']
}
settings { ... } // optional
theme: BlockTheme { ... } // optional
}

Parameters

ParameterDescription
labelDisplay name shown on the control.
descriptionOptional description. Supports Markdown.
defaultDefault comparison period applied when the dashboard loads. See default.
settingsDisplay settings for the control.
themeOptional BlockTheme override for visual styling.

default

Sets the initial comparison period when the dashboard loads.

ParameterDescriptionAccepted values
typeWhether the comparison period is relative to today or a fixed date range'relative', 'absolute'
durationIf type is 'relative': number of periods (in granularity units) back to compare against

If type is 'absolute': an explicit [start, end] date range
Number (relative) or List[String] (absolute)
granularityUnit for duration. Only used when type is 'relative''day', 'week', 'month', 'quarter', 'year'
show_growth_rateWhether to show the growth rate (% change) alongside the comparison valueBoolean

settings

ParameterDescriptionAccepted values
hide_labelHides the control's labelBoolean
hide_controlsHides the control's own interactive controls from viewersBoolean

Open Markdown
Let us know what you think about this document :)