Skip to main content

Statistics

Statistics component is used to display key metrics in a visually prominent format. It is ideal for highlighting important numbers such as revenue, user count, or task completion rates.

Why use it?

  • Offers at-a-glance insights without analyzing raw data.
  • Commonly used in dashboards, executive summaries, and analytics applications.
  • Helps stakeholders make quick, informed decisions.
Drag a New Chat Component

Data

Primary Values

PropertyDescription
LabelThe descriptive text that explains what the metric represents.
ValueThe primary number or data point being displayed.
Prefix textText or a symbol shown before the value (e.g., $ for currency).
Suffix textText or a symbol shown after the value (e.g., % for percentage).

Secondary Values

PropertyDescription
Hide Secondary ValueToggle to show or hide the secondary metric value.
LabelThe descriptive text indicating what the secondary value represents.
ValueThe metric or data point displayed in secondary value.
Prefix TextText or symbol displayed before the value (e.g., $ for currency).
Suffix TextText or symbol displayed after the value (e.g., % for percentage).
TrendIndicator showing performance trend, such as positive or negative.

Layout

PropertyDescription
DataChoose the alignment of the data (left, center, or right).
Secondary ValueDecide how the secondary value is aligned (vertical or horizontal).
IconSelect an icon to display, or hide it and adjust its alignment (left or right).

Component Specific Actions (CSA)

The following actions of the component can be controlled using the component-specific actions (CSA), you can trigger it using an event or use a RunJS query.

ActionDescriptionRunJS Query
setPrimaryValueUpdates the primary metric value displayed in the component.{{components.statistics1.setPrimaryValue}}
setSecondaryValueUpdates the secondary metric value displayed.{{components.statistics1.setSecondaryValue}}
setLoadingToggles the loading state of the component.{{components.statistics1.setLoading}}
setVisibilityShows or hides the component on the page.{{components.statistics1.setVisibility}}

Exposed Variables

VariableDescriptionHow To Access
primaryLabelThe label text of the primary value.{{components.statistics1.primaryLabel}}
secondaryLabelThe label text of the secondary value.{{components.statistics1.secondaryLabel}}
primaryValueThe main metric value displayed.{{components.statistics1.primaryValue}}
secondaryValueThe secondary metric value displayed.{{components.statistics1.secondaryValue}}
secondarySignDisplayDisplays the trend or sign indicator for secondary value.{{ components.statistics1.secondarySignDisplay }}
isLoadingIndicates whether the component is in a loading state.{{components.statistics1.isLoading}}
isVisibleIndicates whether the component is visible on the page.{{components.statistics1.isVisible}}

Additional Actions

Action
Description
Configuration Options
Loading stateEnables a loading spinner, often used with isLoading to indicate progress.Enable/disable the toggle button or dynamically configure the value by clicking fx and entering a logical expression.
VisibilityControls component visibility.Enable/disable the toggle button or dynamically configure the value by clicking fx and entering a logical expression.
TooltipProvides additional information on hover. Set a display string.String (e.g., Total Deals ).

Devices

Property
Description
Expected Value
Show on desktopMakes the component visible in desktop view.You can set it with the toggle button or dynamically configure the value by clicking fx and entering a logical expression.
Show on mobileMakes the component visible in mobile view.You can set it with the toggle button or dynamically configure the value by clicking fx and entering a logical expression.

Styles

Primary Label and Value

Label PropertyDescriptionConfiguration Options
Primary Label SizeSets the font size of the primary label.Numeric input (px)
Primary Label ColorSets the color of the primary label text.Color picker / HEX / RGBA / Custom Themes
Primary Value SizeSets the font size of the primary value.Numeric input (px)
Primary Value ColorSets the color of the primary value text.Color picker / HEX / RGBA / Custom Themes
IconSets the icon color (if enabled).Color picker / HEX / RGBA / Custom Themes

Secondary Label and Value

Label PropertyDescriptionConfiguration Options
Label SizeSets the font size of the secondary label.Numeric input (px)
Label ColorSets the color of the secondary label text.Color picker / HEX / RGBA / Custom Themes
Value SizeSets the font size of the secondary value.Numeric input (px)
Positive Secondary ValueSets the color for positive secondary values.Color picker / HEX / RGBA / Custom Themes
Negative Secondary ValueSets the color for negative secondary values.Color picker / HEX / RGBA / Custom Themes

Container

Label PropertyDescriptionConfiguration Options
BackgroundSets the background color of the container.Color picker / HEX / RGBA / Custom Themes
BorderDefines the border color.Color picker / HEX / RGBA / Custom Themes
Border RadiusRounds the corners of the container.Numeric input (px)
Box ShadowApplies shadow effect to the container.Select the box shadow color and adjust the related properties or set it programmatically using fx.
PaddingSets the spacing inside the container.Default / None
info

Any property having fx button next to its field can be programmatically configured.