jc-trend
The schema defines the following properties:
Property | Type | Required | Description |
type | component.trend | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Trend Options | true | |
Properties of the options object:
Property | Type | Required | Description |
title | string | Expression | TextWithFormat | TextLocale | false | First line of text |
subtitle | string | Expression | TextWithFormat | TextLocale | false | Second line of text. This text won't be displayed if isValueBottom is set to true |
value | string | number | string | false | Value which will be displayed in percentage |
format | Date & Number Format | false | Format of the value. It can be currency for example. |
style | object | false | |
First line of text
Second line of text. This text won't be displayed if isValueBottom is set to true
Value which will be displayed in percentage
The object must be any of the following types:
Format of the value. It can be currency for example.
Properties of the style object:
Property | Type | Required | Description |
isValueBottom | boolean | false | By default value is on right of text. You can move it down underneath of text by set this property to true |
isValueHidden | boolean | false | It will hide the number and keeps only icon indicating up/down trend |
isAlignRight | boolean | false | It aligns everything to the right |
