Overview
Provide journey related data for momentum chart
Summary
This request will return journey related data for momentum chart
Request Arguments
Name |
Type |
Description |
Required |
module
|
String
|
Record module
|
True
|
record
|
Object
|
Object containing id of the current record
|
True
|
selected
|
Boolean
|
True if current record is selected otherwise false
|
False
|
Request Example
{
"module": "DRI_Workflows",
"record": {
"id": "e00ce644-2ce5-11ed-8ea1-0242ac120006",
},
"selected": {
"selected": true,
}
}
Response
The response will be an object containing the following fields:
Name |
Type |
Description |
data
|
Array
|
Momentum chart related data according to journey
|
Response Example
{
"data" : [
"id" => "e00ce644-2ce5-11ed-8ea1-0242ac120006",
"name" => "Test",
"ratio" => 1,
"values" => [
[
"group" => 1,
"t" => 1,
"value" => 1,
],
],
"data" => [
[
"key" => "Range 1",
"y" => 25,
"value" => 25,
"color" => "#e61718",
],
[
"key" => "Range 2",
"y" => 50,
"value" => 25,
"color" => "#fb8724",
],
[
"key" => "Range 3",
"y" => 75,
"value" => 25,
"color" => "#e5a117",
],
[
"key" => "Range 4",
"y" => 100,
"value" => 25,
"color" => "#33800d",
],
],
]
}