AML Dashboard Blocks
Knowledge Checkpoint
A grasp of these concepts will help you understand this documentation better:
A dashboard is built from blocks:
- Each block is declared with
block <name>: <Type> { ... }inside aDashboard. - A block's position on the dashboard is defined in the
viewsection. - Blocks interact with each other via the
explicit_interactionssection. See AML Dashboard Interactions for details.
Dashboard my_dashboard {
block t1: TextBlock { ... }
block v1: VizBlock { ... }
block a1: AiBlock { ... }
block f1: FilterBlock { ... }
block p1: PopBlock { ... }
block d1: DateDrillBlock { ... }
explicit_interactions: [ ... ]
view: CanvasLayout { ... } // or: TabLayout { ... } / HTMLLayout { ... }
}
Available blocks
- TextBlock: displays Markdown or HTML content
- VizBlock: wraps a chart, table, or KPI visualization
- Control block: lets viewers manipulate data and add interactivity to the dashboard. Covers three block types:
- FilterBlock: adds a user-controlled filter
- PopBlock: adds a Period-over-Period comparison control
- DateDrillBlock: lets viewers switch time granularity across charts
- AiBlock: an AI-generated content block (Coming soon)
Note
Explicitly defining a block in AML (instead of letting the Visual Editor generate it) turns it into a Reused Block, which can no longer be edited visually; you edit it in code from then on. See Reused Blocks for details.