The Statistic component for Retool Apps
A content area to display primary and secondary number values with optional trend indicators.
Settings
Statistic includes the following configurable options when building apps in the IDE.
Properties
All properties for Statistic with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
Values
left | Left alignment. |
center | Center alignment. |
right | Right alignment. |
clickable
boolean
Whether there is an enabled Click event handler.
decimalPlaces
number
The number of decimal places to display. If necessary, values round up or down automatically.
enableTrend
boolean
Whether to render the value using positive
or negative
color styles based on whether the secondary value is positive or negative.