[
{
"type": "ia.display.linear-scale",
"version": 0,
"props": {
"majorTicks": {
"color": "#FFFFFF"
},
"minorTicks": {
"length": 0
},
"fineTicks": {
"span": 0
},
"labels": {
"angle": 270
},
"indicators": [
{
"value": 0,
"labelColor": "#000000",
"labelAngle": 270,
"color": "#44789c",
"stroke": 4,
"opacity": 0.5,
"length": 25,
"indicatorStyle": "range"
},
{
"value": 0,
"labelColor": "#000000",
"labelAngle": 270,
"color": "#8AFF8A",
"stroke": 1.5,
"opacity": 1,
"length": 10,
"indicatorStyle": "range"
},
{
"label": "",
"labelColor": "",
"labelAngle": 0,
"color": "",
"stroke": 1,
"opacity": 1,
"length": 25,
"indicatorStyle": "wedge",
"extent": 200
}
]
},
"meta": {
"name": "LinearScale"
},
"position": {
"x": 0.0221,
"y": 0.2976,
"height": 0.6324,
"width": 0.9259
},
"custom": {},
"propConfig": {
"props.indicators[0].extent": {
"binding": {
"type": "property",
"config": {
"path": "view.params.Current_Unit_Count"
}
}
},
"props.indicators[1].extent": {
"binding": {
"type": "expr",
"config": {
"expression": "({view.params.Units_Expected}/{view.params.Expected_Shift_Duration})*{view.params.Current_Shift_Duration}"
}
}
},
"props.indicators[2].value": {
"binding": {
"type": "property",
"config": {
"path": "view.params.Units_Expected"
}
}
},
"props.majorTicks.span": {
"binding": {
"type": "expr",
"config": {
"expression": "round(8*{this.props.maxValue}/9)"
}
}
},
"props.maxValue": {
"binding": {
"type": "expr",
"config": {
"expression": "{view.params.Units_Expected} * 1.2"
},
"transforms": [
{
"code": "\tvalue = round(value,-3)\n\tvalue = int(1000 * round(value/1000.))\n\tvalue = value + value/8\n\treturn value",
"type": "script"
}
]
}
},
"props.minorTicks.span": {
"binding": {
"config": {
"expression": "{this.props.majorTicks.span}/4"
},
"type": "expr"
}
},
"props.indicators[0].label": {
"binding": {
"type": "expr",
"config": {
"expression": "tostr({view.params.Current_Unit_Count})"
}
}
},
"props.indicators[1].label": {
"binding": {
"type": "expr",
"config": {
"expression": "tostr(({view.params.Units_Expected}/{view.params.Expected_Shift_Duration})*{view.params.Current_Shift_Duration})"
}
}
}
},
"events": {
"dom": {
"onDoubleClick": {
"config": {
"draggable": true,
"id": "92JQ1I7b",
"modal": true,
"overlayDismiss": true,
"position": {
"relativeLocation": "center"
},
"positionType": "relative",
"resizable": true,
"showCloseIcon": true,
"title": "Progress Bar",
"type": "open",
"viewParams": {
"Message": " "
},
"viewPath": "Templates/Popup",
"viewportBound": false
},
"scope": "C",
"type": "popup"
}
}
}
}
]