YOUSEFUL / DELPHI / COMPONENTS
TAtlasWidgetKind
The three dashboard widget kinds: KPI card, bar chart and grid.
Description
Used in TAtlasWidgetDefinition. The dashboard JSON stores the ordinal (0, 1 or 2).
Members
| Member | Kind | What it does |
|---|---|---|
awKPI | value | Ordinal 0. |
awChart | value | Ordinal 1. |
awGrid | value | Ordinal 2. |
Values
awKPI value
awKPIOrdinal 0. A card with one large number: the measure over all rows of the snapshot.
awChart value
awChartOrdinal 1. A bar chart with one bar per distinct Dimension value.
awGrid value
awGridOrdinal 2. A read-only grid of every column of the filtered rows.
Examples
Describe a widget kind
A case over the three values.
uses Atlas.Dashboard;
function WidgetKindName(Kind: TAtlasWidgetKind): string;
begin
case Kind of
awKPI: Result := 'KPI card';
awChart: Result := 'bar chart';
else
Result := 'grid';
end;
end;