Skip to main content

Stats Number


The "Stats Number" component is similar to the Stats component; it uses a graph-style icon to display your "statistical data". However, the difference is, the Stats Number allows you to input the values directly, which are then automatically calculated, and the corresponding differential percentage is displayed with the appropriate up/down icon.

Stats NumberSettings
StatsNumber
Note: Auto-calculates the percentage!
From the given Current and Previous Values.
StatsNumber

Properties

PropertyDescription
TitleThis text will be set as the title for the component.
Current ValueSets the current value; will be used for calculating the differentials.
Previous ValueSets the previous value; will be used for calculating the differentials.
WidthAdjusts the width of the widget.
IconSelect from the available icon choices.

StatsNumber
DescriptionEnter the "description" that provides additional information about the data.
Percentage Indicater
(Checkbox)
Enables the "Icon" option, which displays the differential percentage.
(Note: If unchecked, the "Previous Value" field is disabled.)

API Methods

setCurrentValue

Sets the current value for the component.

setCurrentValue(value: number): void

setPreviousValue

Sets the previous value for the component.

setPreviousValue(value: number): void

setVisibility

Sets the Visibility flag for this component.

setVisibility(visible: boolean): void

setVisibilityCondition

Sets the visibility condition for this component.

setVisibilityCondition(condition: string): void