Learn about the Statistics component for use in UI extensions.
Statistics
component renders a visual spotlight of one or more data points. Includes the StatisticsItem
and StatisticsTrend
subcomponents.
StatisticItem
label: the statisticItem
’s label text.StatisticItem
number: the statisticItem
’s primary number.StatisticTrend
value: the percentage trend value.StatisticTrend
direction: the direction if the trend arrow (up or down).Prop | Type | Description |
---|---|---|
id | String | The statistic item’s unique identifier. |
label | String | The item’s label. |
number | String | number | The string to be displayed as the item’s primary number. |
Prop | Type | Description |
---|---|---|
direction | 'increase' (default) | 'decrease' | The direction of the trend arrow. |
value | String | The text to be displayed as the trend value. |
color | 'red' | 'green' | The color of the trend arrow. |
StatisticsTrend
components, use the direction
prop to describe whether the data is trend upwards or downwards.
increase
: for additions or positive progression for a given time period.decrease
: for subtractions or negative progression for a given time period.