trend
The trend component displays an increase or decrease over a period. The increment or decrement number can be formatted as a percentage, currency, or plain value.
Trend is available in the following content widgets:
Configuration options
value
Positive or negative numeric value.
format
A selection of formats is available for the main value of the widget, for example, currency.
title
Display a title for the trend.
subtitle
Add a subtitle under the title text. Note: this text won't be displayed if isValueBottom is set to true
style
Properties used for component styling.
isValueBottom- By default, the value is on the right of the text. Set the property totrueto move it underneath the text.isValueHidden- hides the number and only shows an icon indicating an up or down trend.isAlignRight- aligns everything to the right.
Examples and code snippets
Trend on value widget

widgets:
trend-value:
type: widget.value
options:
value: '23850'
align: right
format:
numberStyle: currency
currency: USD
bottom:
type: component.trend
options:
title: 'Last week'
value: +1250
format:
numberStyle: currency
currency: USD
top:
type: component.titles
options:
icon: chart
iconColor: color6Trend on chart widget

Trend on list widget

Last updated
Was this helpful?