Skip to main content
Version: 3.1.0-Beta 🚧

Statistics

Statistics can be used to display different statistical information.

Properties

Property
Description
Primary value labelThis property lets you add and remove primary value label.
Primary valueThis property lets you add and remove primary value, the actual amount can be represented here.
Hide secondary valueThis property lets you show/hide the secondary value from the statistics component. By default, this property is disabled. Toggle it on to hide the secondary value, you can also click on the fx button next to it to dynamically set the value to {{true}} or {{false}}.
Secondary value labelThis property lets you add and remove secondary value label.
Secondary valueThis property lets you add and remove secondary value, the change in value can be represented here.
Secondary sign displayThis property lets you add and secondary sign either positive or negative,can be used to represent positive(increase) or negative(decrease) movement. Default value is positive.
Loading stateLoading state can be used to show a spinner on the statistics. Loading state is commonly used with isLoading property of the queries to show a loading status while a query is being run. Switch the toggle On or click on fx to programmatically set the value {{true}} or {{false}}.

Component Specific Actions (CSA)

There are currently no CSA (Component-Specific Actions) implemented to regulate or control the component.

Exposed Variables

There are currently no exposed variables for the component.

General

Tooltip

A Tooltip is often used to specify extra information about something when the user hovers the mouse pointer over the component.

Under the General accordion, you can set the value in the string format. Now hovering over the component will display the string as the tooltip.

Layout

Layout
Description
Expected Value
Show on desktopToggle on or off to display desktop view.You can programmatically determining the value by clicking on fx to set the value {{true}} or {{false}}.
Show on mobileToggle on or off to display mobile view.You can programmatically determining the value by clicking on fx to set the value {{true}} or {{false}}.

Styles

Style
Description
Primary label colourYou can change the primary label color by entering the Hex color code or choosing a color of your choice from the color picker.
Primary text colourYou can change the primary text color of the primary label by entering the Hex color code or choosing a color of your choice from the color picker.
Secondary label colourYou can change the secondary label color of the primary label by entering the Hex color code or choosing a color of your choice from the color picker.
Secondary text colourYou can change the secondary text color of the primary label by entering the Hex color code or choosing a color of your choice from the color picker.
VisibilityToggle on or off to control the visibility of the component. You can programmatically change its value by clicking on the fx button next to it. If {{false}} the component will not be visible after the app is deployed. By default, it's set to {{true}}.
info

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