DATE / CALENDAR

Calendar

Calendar

Display custom calendars in your dashboards.

The user can choose which property contains the object describing the data to use, for example, userActivity.

Then, upon receiving the following message:

{
  "payload": {
    "userActivity": [
      {
        "day": "2015-06-12",
        "value": 89
      },
      {
        "day": "2016-10-09",
        "value": 50
      },
      {
        "day": "2017-12-02",
        "value": 266
      }
    ]
  }
}

three calendars are displayed (one per year), with only one day having values in each.

If a new message arrives with values, the graph updates with the new values.

Note: The array containing the data must always have the same size (the same number of days).

How to add a Date widget?

Once your dashboard is unlocked, click on the "Time" Widget category and select the "Date" option.
Personalize the Date by selecting:

  • The relevant payload key. It musts abide a timestamp format.
  • The date format. Use M for months if you want to keep months number on as little digits as possible, or use MM if you want them on a consistent two digits format. Use hh for formatting hours on a 12h clock, or HH for a 24h clock.

Was this article helpful?

Powered by Zendesk