Skip to content

Marker

Description

Letter Marker display a data which is configured and showing a details of that data.

Attributes

  • tile=marker
  • title: marker title
  • marker: [Object]
    • color: Hex color of letter marker by default it's orange
    • mark: Mark Letter by default it is 'A'
    • dispatch: [Object] Provide a dispatches details
      • tracker: tracker id
      • data: [Object]
        • meal: matches with connects match metric
      • features: [Object]
        • { time: hidden }
    • prescription: Provide tracker id. Uses this when alternate source is not provided.
    • maintenance: Provide tracker id. Uses this when alternate source is provided.
    • name: suffix | prefix
    • condition: rule
    • prefix: Used to get the data from dispatch values
    • text: mark letter color
    • interactive: true | false. Based on that display a icon button in the marker card. default is true.
  • metrics: [Array of metric tuples]
    • display string: indicate the title
    • match string: indicate the path
    • label: indicate the notation
  • connect: Connection objects
    • match: [Object]
      • date: valid date format to filter the data
      • metric: dispatch values path
      • value: to match with the dispatches values
    • source: data source path
  • alternate:
    • source: alternate source path
    • match : [Object]
      • date: valid date format to filter the data
      • metric: dispatch value path
      • value: to match with the dispatches values
  • condition: valid condition rule

Example

 {
  "tile": "marker",
  "title": "Marker Test",
  "marker": {
    "condition": "user is admin",
    "mark": "$",
    "maintenance": "7ba9a7b5-c5c8-420e-8c49-58e2c962205d",
    "prescription": "7ba9a7b5-c5c8-420e-8c49-58e2c962205d",
    "prefix": "sleep",
    "interactive": false
  },
  "connect": {
    "match": {
      "date": "YYYY-MM-DD",
      "metric": "sleep",
      "value": 7
    },
    "source": "wellness"
  },
  "metrics": [
    [
      "Test 1",
      "",
      ""
    ],
    [
      "Test 2",
      "",
      ""
    ]
  ],
  "dispatch": {
    "tracker": "7ba9a7b5-c5c8-420e-8c49-58e2c962205d",
    "data": {
      "meal": "sleep"
    }
  }
}