Examples
Basic Usage
Attributes
Semantic metric name to display, from metrics/*.yaml. Use instead of the raw data/value/x/y attributes.
SQL aggregation for the total (e.g., count(*)). Omitted in metric mode — the metric supplies the default denominator (its own aggregate).
Format code for numerator and denominator values. See Value Formatting for available formats.
Two-color array defining the gradient for bars and badges, e.g. [“#ef4444”, “#22c55e”]. First color maps to 0%, second to 100%.
Two percentage thresholds (0-1) creating 3 color zones: red below first, amber between, green above second. e.g. [0.5, 0.8].
If true, low percentages are green and high percentages are red. Default (false) means high percentages are green. Only applies when thresholds are set.
Maximum number of rows to return from the query. Note: When used with tables, limit will disable subtotals to prevent incomplete subtotal rows.

