Blue-Fez.com Game development, utilities, e-commerce for iOS

Number & Stat

The Number widget is focused on the display of a metric that can be represented by a single number, along with a secondary metric. E.g. sales of this year compared to the sales of last year.
Stacks Image 14

Supported ADD parameters

ADD API

widget_class
  • Contains "number_and_stat" for Numbers-widget with a primary metric and a secundary (base) metric.
{
   "title": "Sales",
   "description": "Percentage logic",
   "domain": "M1ZES",
   "widget_class": "number_and_stat"
}

Supported SET parameters

SET API

absolute
  • boolean to indicate whether to show the secundary value in the widget as a raw value (true) or as a percentage (false).
reverse
  • boolean to indicate whether am increase in the primary metric is considered as a positive event (green arrow pointing up) or negative event (red arrow pointing down)
item
  • Item is an array and must contain primary and secundary metric. The secundary metric acts as reference (base) to the primary metric.
value
  • This parameter describes the primary and secundary metric and should be a number.
{
    "domain": "M1ZES",
    "widget_data": {
        "reverse": "false",
        "absolute": "false",
        "item": [
            {
                "value": 75
            },
            {
                "value": 200
            }
        ]
    }
}

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorised as necessary are stored in your browser as they are essential for the working of basic functionalities of the website.