YOUSEFUL / DELPHI / COMPONENTS

TAtlasWidgetKind

The three dashboard widget kinds: KPI card, bar chart and grid.

Enumeration Unit Atlas.Dashboard · Product Atlas Analytics

Description

Used in TAtlasWidgetDefinition. The dashboard JSON stores the ordinal (0, 1 or 2).

Members

MemberKindWhat it does
awKPIvalueOrdinal 0.
awChartvalueOrdinal 1.
awGridvalueOrdinal 2.

Values

awKPI value

awKPI

Ordinal 0. A card with one large number: the measure over all rows of the snapshot.

awChart value

awChart

Ordinal 1. A bar chart with one bar per distinct Dimension value.

awGrid value

awGrid

Ordinal 2. A read-only grid of every column of the filtered rows.

Examples

Describe a widget kind

A case over the three values.

pascal
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;

TAtlasWidgetDefinition

Also in Atlas Analytics

TAtlasReportDefinition · TAtlasDashboard